{"id": "train_spider:2441", "db_id": "movie_1", "question": "Who directed Avatar?", "gold_sql": "SELECT director FROM Movie WHERE title = 'Avatar'", "raw_output": "SELECT T1.director FROM Movie AS T1 WHERE T1.title = 'Avatar'", "predicted_sql": "SELECT T1.director FROM Movie AS T1 WHERE T1.title = 'Avatar'", "generation_status": "ok", "prompt_tokens": 208, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2442", "db_id": "movie_1", "question": "How many reviewers listed?", "gold_sql": "SELECT count(*) FROM Reviewer", "raw_output": "SELECT count(*) FROM Reviewer", "predicted_sql": "SELECT count(*) FROM Reviewer", "generation_status": "ok", "prompt_tokens": 209, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2443", "db_id": "movie_1", "question": "How many reviewers are there?", "gold_sql": "SELECT count(*) FROM Reviewer", "raw_output": "SELECT count(*) FROM Reviewer", "predicted_sql": "SELECT count(*) FROM Reviewer", "generation_status": "ok", "prompt_tokens": 210, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2440", "db_id": "movie_1", "question": "Who is the director of movie Avatar?", "gold_sql": "SELECT director FROM Movie WHERE title = 'Avatar'", "raw_output": "SELECT T1.director FROM Movie AS T1 WHERE T1.title = 'Avatar'", "predicted_sql": "SELECT T1.director FROM Movie AS T1 WHERE T1.title = 'Avatar'", "generation_status": "ok", "prompt_tokens": 212, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2450", "db_id": "movie_1", "question": "What is the lowest and highest rating star?", "gold_sql": "SELECT max(stars) , min(stars) FROM Rating", "raw_output": "SELECT MIN(stars), MAX(stars) FROM Rating", "predicted_sql": "SELECT MIN(stars), MAX(stars) FROM Rating", "generation_status": "ok", "prompt_tokens": 213, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2465", "db_id": "movie_1", "question": "What is the title of the newest movie?", "gold_sql": "SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie)", "raw_output": "SELECT title FROM Movie ORDER BY year DESC LIMIT 1", "predicted_sql": "SELECT title FROM Movie ORDER BY year DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 213, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2494", "db_id": "movie_1", "question": "How many movie reviews does each director get?", "gold_sql": "SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director", "raw_output": "SELECT T1.director, COUNT(T3.mID) FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID GROUP BY T1.director", "predicted_sql": "SELECT T1.director, COUNT(T3.mID) FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID GROUP BY T1.director", "generation_status": "ok", "prompt_tokens": 213, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2446", "db_id": "movie_1", "question": "What is the reviewer id of Daniel Lewis?", "gold_sql": "SELECT rID FROM Reviewer WHERE name = \"Daniel Lewis\"", "raw_output": "SELECT rID FROM Reviewer WHERE name = 'Daniel Lewis'", "predicted_sql": "SELECT rID FROM Reviewer WHERE name = 'Daniel Lewis'", "generation_status": "ok", "prompt_tokens": 213, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2464", "db_id": "movie_1", "question": "What is the name of the most recent movie?", "gold_sql": "SELECT title FROM Movie WHERE YEAR = (SELECT max(YEAR) FROM Movie)", "raw_output": "SELECT T1.title FROM Movie AS T1 ORDER BY T1.year DESC LIMIT 1", "predicted_sql": "SELECT T1.title FROM Movie AS T1 ORDER BY T1.year DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 214, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2456", "db_id": "movie_1", "question": "What is the average rating star for each reviewer?", "gold_sql": "SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name", "raw_output": "SELECT T1.name, AVG(T2.stars) FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.name", "predicted_sql": "SELECT T1.name, AVG(T2.stars) FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.name", "generation_status": "ok", "prompt_tokens": 214, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2495", "db_id": "movie_1", "question": "For each director, how many reviews have they received?", "gold_sql": "SELECT count(*) , T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director", "raw_output": "SELECT T1.director, count(T3.rID) FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID GROUP BY T1.director", "predicted_sql": "SELECT T1.director, count(T3.rID) FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID GROUP BY T1.director", "generation_status": "ok", "prompt_tokens": 215, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2458", "db_id": "movie_1", "question": "Find the titles of all movies that have no ratings.", "gold_sql": "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)", "raw_output": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.mID IS NULL", "predicted_sql": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.mID IS NULL", "generation_status": "ok", "prompt_tokens": 215, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2447", "db_id": "movie_1", "question": "What is the id of the reviewer named Daniel Lewis?", "gold_sql": "SELECT rID FROM Reviewer WHERE name = \"Daniel Lewis\"", "raw_output": "SELECT rID FROM Reviewer WHERE name = 'Daniel Lewis'", "predicted_sql": "SELECT rID FROM Reviewer WHERE name = 'Daniel Lewis'", "generation_status": "ok", "prompt_tokens": 215, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2449", "db_id": "movie_1", "question": "How many movie ratings have more than 3 stars?", "gold_sql": "SELECT count(*) FROM Rating WHERE stars > 3", "raw_output": "SELECT count(*) FROM Rating WHERE stars > 3", "predicted_sql": "SELECT count(*) FROM Rating WHERE stars > 3", "generation_status": "ok", "prompt_tokens": 215, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2435", "db_id": "movie_1", "question": "What are the names of all movies directed by Steven Spielberg?", "gold_sql": "SELECT title FROM Movie WHERE director = 'Steven Spielberg'", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = 'Steven Spielberg'", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = 'Steven Spielberg'", "generation_status": "ok", "prompt_tokens": 216, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2438", "db_id": "movie_1", "question": "How many movies were made before 2000?", "gold_sql": "SELECT count(*) FROM Movie WHERE YEAR < 2000", "raw_output": "SELECT count(*) FROM Movie WHERE year < 2000", "predicted_sql": "SELECT count(*) FROM Movie WHERE year < 2000", "generation_status": "ok", "prompt_tokens": 216, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2484", "db_id": "movie_1", "question": "Find the titles of all movies not reviewed by Chris Jackson.", "gold_sql": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'", "raw_output": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Chris Jackson'", "predicted_sql": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Chris Jackson'", "generation_status": "ok", "prompt_tokens": 216, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2483", "db_id": "movie_1", "question": "What are the names of all the reviewers and movie names?", "gold_sql": "SELECT name FROM Reviewer UNION SELECT title FROM Movie", "raw_output": "SELECT name, title FROM Reviewer, Movie", "predicted_sql": "SELECT name, title FROM Reviewer, Movie", "generation_status": "ok", "prompt_tokens": 216, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2491", "db_id": "movie_1", "question": "What are the names of all directors who made one movie?", "gold_sql": "SELECT director FROM Movie GROUP BY director HAVING count(*) = 1", "raw_output": "SELECT T1.director FROM Movie AS T1 GROUP BY T1.director HAVING count(*) = 1", "predicted_sql": "SELECT T1.director FROM Movie AS T1 GROUP BY T1.director HAVING count(*) = 1", "generation_status": "ok", "prompt_tokens": 216, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2439", "db_id": "movie_1", "question": "How many movies were made before 2000?", "gold_sql": "SELECT count(*) FROM Movie WHERE YEAR < 2000", "raw_output": "SELECT count(*) FROM Movie WHERE year < 2000", "predicted_sql": "SELECT count(*) FROM Movie WHERE year < 2000", "generation_status": "ok", "prompt_tokens": 216, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2520", "db_id": "movie_1", "question": "find the ids of reviewers who did not give 4 star.", "gold_sql": "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4", "raw_output": "SELECT T1.rID FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars <> 4 GROUP BY T1.rID HAVING COUNT(CASE WHEN T2.stars = 4 THEN 1 END) = 0", "predicted_sql": "SELECT T1.rID FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars <> 4 GROUP BY T1.rID HAVING COUNT(CASE WHEN T2.stars = 4 THEN 1 END) = 0", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2462", "db_id": "movie_1", "question": "What is the average rating stars and title for the oldest movie?", "gold_sql": "SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)", "raw_output": "SELECT AVG(T2.stars), T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID ORDER BY T1.year ASC LIMIT 1", "predicted_sql": "SELECT AVG(T2.stars), T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID ORDER BY T1.year ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2434", "db_id": "movie_1", "question": "Find the titles of all movies directed by steven spielberg.", "gold_sql": "SELECT title FROM Movie WHERE director = 'Steven Spielberg'", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = 'steven spielberg'", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = 'steven spielberg'", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2482", "db_id": "movie_1", "question": "Return all reviewer names and movie names together in a single list.", "gold_sql": "SELECT name FROM Reviewer UNION SELECT title FROM Movie", "raw_output": "SELECT T1.name, T2.title FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID", "predicted_sql": "SELECT T1.name, T2.title FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2459", "db_id": "movie_1", "question": "What are the titles of all movies that have not been rated?", "gold_sql": "SELECT title FROM Movie WHERE mID NOT IN (SELECT mID FROM Rating)", "raw_output": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.mID IS NULL", "predicted_sql": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.mID IS NULL", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2490", "db_id": "movie_1", "question": "What are the names of the directors who made exactly one movie?", "gold_sql": "SELECT director FROM Movie GROUP BY director HAVING count(*) = 1", "raw_output": "SELECT T1.director FROM Movie AS T1 GROUP BY T1.director HAVING count(*) = 1", "predicted_sql": "SELECT T1.director FROM Movie AS T1 GROUP BY T1.director HAVING count(*) = 1", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2476", "db_id": "movie_1", "question": "Find the names of all reviewers who rated Gone with the Wind.", "gold_sql": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'", "raw_output": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID JOIN Movie AS T3 ON T2.mID = T3.mID WHERE T3.title = 'Gone with the Wind'", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID JOIN Movie AS T3 ON T2.mID = T3.mID WHERE T3.title = 'Gone with the Wind'", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2466", "db_id": "movie_1", "question": "What is the maximum stars and year for the most recent movie?", "gold_sql": "SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)", "raw_output": "SELECT MAX(T1.stars), T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.ratingDate DESC LIMIT 1", "predicted_sql": "SELECT MAX(T1.stars), T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.ratingDate DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 217, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2474", "db_id": "movie_1", "question": "Find the names of all reviewers who have contributed three or more ratings.", "gold_sql": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3", "raw_output": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.name HAVING count(*) >= 3", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.name HAVING count(*) >= 3", "generation_status": "ok", "prompt_tokens": 218, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2509", "db_id": "movie_1", "question": "What is the name of the movie that has been reviewed the most?", "gold_sql": "SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY COUNT(T2.rID) DESC LIMIT 1", "predicted_sql": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY COUNT(T2.rID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 218, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2463", "db_id": "movie_1", "question": "For the oldest movie listed, what is its average rating and title?", "gold_sql": "SELECT avg(T1.stars) , T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT min(YEAR) FROM Movie)", "raw_output": "SELECT T1.title, AVG(T3.stars) FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID GROUP BY T1.mID ORDER BY T1.year ASC LIMIT 1", "predicted_sql": "SELECT T1.title, AVG(T3.stars) FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID GROUP BY T1.mID ORDER BY T1.year ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 218, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2444", "db_id": "movie_1", "question": "What is the id of the reviewer whose name has substring “Mike”?", "gold_sql": "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"", "raw_output": "SELECT rID FROM Reviewer WHERE name LIKE '%Mike%';", "predicted_sql": "SELECT rID FROM Reviewer WHERE name LIKE '%Mike%';", "generation_status": "ok", "prompt_tokens": 218, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2478", "db_id": "movie_1", "question": "Find the names of all directors whose movies are rated by Sarah Martinez.", "gold_sql": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "raw_output": "SELECT T1.director FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID INNER JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "predicted_sql": "SELECT T1.director FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID INNER JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "generation_status": "ok", "prompt_tokens": 218, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2516", "db_id": "movie_1", "question": "What are the ids of the movies that are not reviewed by Brittany Harris.", "gold_sql": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\"", "raw_output": "SELECT T1.mID FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Brittany Harris'", "predicted_sql": "SELECT T1.mID FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Brittany Harris'", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2508", "db_id": "movie_1", "question": "What is the name of the movie that is rated by most of times?", "gold_sql": "SELECT T2.title , T1.mID FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.title ORDER BY COUNT(T2.rID) DESC LIMIT 1", "predicted_sql": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.title ORDER BY COUNT(T2.rID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2457", "db_id": "movie_1", "question": "What is the average number of stars that each reviewer awards for a movie?", "gold_sql": "SELECT T2.name , avg(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name", "raw_output": "SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID", "predicted_sql": "SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 31, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2512", "db_id": "movie_1", "question": "Find the names of reviewers who had given higher than 3 star ratings.", "gold_sql": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3", "raw_output": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars > 3", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars > 3", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2445", "db_id": "movie_1", "question": "What is the id of the reviewer whose name includes the word \"Mike\"?", "gold_sql": "SELECT rID FROM Reviewer WHERE name LIKE \"%Mike%\"", "raw_output": "SELECT rID FROM Reviewer WHERE name LIKE '%Mike%';", "predicted_sql": "SELECT rID FROM Reviewer WHERE name LIKE '%Mike%';", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2467", "db_id": "movie_1", "question": "What is highest rating for the most recent movie and when was it released?", "gold_sql": "SELECT max(T1.stars) , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT max(YEAR) FROM Movie)", "raw_output": "SELECT T1.stars, T2.year FROM Rating AS T1 INNER JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T2.year DESC LIMIT 1", "predicted_sql": "SELECT T1.stars, T2.year FROM Rating AS T1 INNER JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T2.year DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2448", "db_id": "movie_1", "question": "What is the total number of ratings that has more than 3 stars?", "gold_sql": "SELECT count(*) FROM Rating WHERE stars > 3", "raw_output": "SELECT count(*) FROM Rating WHERE stars > 3", "predicted_sql": "SELECT count(*) FROM Rating WHERE stars > 3", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2451", "db_id": "movie_1", "question": "What is the maximum and mininum number of stars a rating can receive?", "gold_sql": "SELECT max(stars) , min(stars) FROM Rating", "raw_output": "SELECT MAX(stars), MIN(stars) FROM Rating", "predicted_sql": "SELECT MAX(stars), MIN(stars) FROM Rating", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2485", "db_id": "movie_1", "question": "What are the titles of all movies that were not reviewed by Chris Jackson?", "gold_sql": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'", "raw_output": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Chris Jackson'", "predicted_sql": "SELECT T1.title FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Chris Jackson'", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2522", "db_id": "movie_1", "question": "Find the ids of reviewers who didn't only give 4 star.", "gold_sql": "SELECT rID FROM Rating WHERE stars != 4", "raw_output": "SELECT T1.rID FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(CASE WHEN T2.stars = 4 THEN 1 END) < COUNT(T2.rID)", "predicted_sql": "SELECT T1.rID FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(CASE WHEN T2.stars = 4 THEN 1 END) < COUNT(T2.rID)", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2521", "db_id": "movie_1", "question": "What are the ids of all reviewers who did not give 4 stars?", "gold_sql": "SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4", "raw_output": "SELECT T1.rID FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars != 4 GROUP BY T1.rID HAVING COUNT(CASE WHEN T2.stars = 4 THEN 0 ELSE 1 END) < COUNT(T2.rID)", "predicted_sql": "SELECT T1.rID FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars != 4 GROUP BY T1.rID HAVING COUNT(CASE WHEN T2.stars = 4 THEN 0 ELSE 1 END) < COUNT(T2.rID)", "generation_status": "ok", "prompt_tokens": 219, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2514", "db_id": "movie_1", "question": "Find the average rating star for each movie that are not reviewed by Brittany Harris.", "gold_sql": "SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\") GROUP BY mID", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Brittany Harris' GROUP BY T1.title", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Brittany Harris' GROUP BY T1.title", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 71, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2492", "db_id": "movie_1", "question": "What are the names of the directors who made exactly one movie excluding director NULL?", "gold_sql": "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*) = 1", "raw_output": "SELECT T1.director FROM Movie AS T1 WHERE T1.director IS NOT NULL GROUP BY T1.director HAVING count(T1.mID) = 1", "predicted_sql": "SELECT T1.director FROM Movie AS T1 WHERE T1.director IS NOT NULL GROUP BY T1.director HAVING count(T1.mID) = 1", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2475", "db_id": "movie_1", "question": "What are the names of all reviewers that have rated 3 or more movies?", "gold_sql": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T1.rID HAVING COUNT(*) >= 3", "raw_output": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.name HAVING count(*) >= 3", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID GROUP BY T1.name HAVING count(*) >= 3", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2479", "db_id": "movie_1", "question": "What are the names of all directors whose movies have been reviewed by Sarah Martinez?", "gold_sql": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "raw_output": "SELECT T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "predicted_sql": "SELECT T1.director FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2531", "db_id": "movie_1", "question": "What are the names of all movies that received 3 or 4 stars?", "gold_sql": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars IN (3, 4)", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars IN (3, 4)", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2497", "db_id": "movie_1", "question": "What are the movie titles with the highest average rating and what are those ratings?", "gold_sql": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T2.stars) DESC LIMIT 1", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T2.stars) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2530", "db_id": "movie_1", "question": "What are the names of movies that get 3 star and 4 star?", "gold_sql": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 3 OR T2.stars = 4", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 3 OR T2.stars = 4", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2477", "db_id": "movie_1", "question": "What are the names of all the different reviewers who rates Gone with the Wind?", "gold_sql": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'", "raw_output": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID JOIN Movie AS T3 ON T2.mID = T3.mID WHERE T3.title = 'Gone with the Wind'", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID JOIN Movie AS T3 ON T2.mID = T3.mID WHERE T3.title = 'Gone with the Wind'", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2518", "db_id": "movie_1", "question": "Find the average rating star for each movie that received at least 2 ratings.", "gold_sql": "SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID HAVING count(*) >= 2", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 220, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2460", "db_id": "movie_1", "question": "Find the names of all reviewers who have ratings with a NULL value for the date.", "gold_sql": "SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = \"null\"", "raw_output": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.ratingDate IS NULL", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.ratingDate IS NULL", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2511", "db_id": "movie_1", "question": "What are the titles of all movies that have between 3 and 5 stars?", "gold_sql": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars BETWEEN 3 AND 5", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars BETWEEN 3 AND 5", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2496", "db_id": "movie_1", "question": "Find the movies with the highest average rating. Return the movie titles and average rating.", "gold_sql": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) DESC LIMIT 1", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T2.stars) DESC LIMIT 1", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T2.stars) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2507", "db_id": "movie_1", "question": "For each director, what is the title and score of their most poorly rated movie?", "gold_sql": "SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director", "raw_output": "SELECT T1.director, T2.title, T2.stars FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY T2.stars ASC LIMIT 1", "predicted_sql": "SELECT T1.director, T2.title, T2.stars FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY T2.stars ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.title", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2499", "db_id": "movie_1", "question": "What are the titles and average ratings for all movies that have the lowest average rating?", "gold_sql": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID, T1.title HAVING AVG(T2.stars) = (SELECT AVG(T3.stars) FROM Rating AS T3 JOIN Movie AS T4 ON T3.mID = T4.mID GROUP BY T3.mID)", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID, T1.title HAVING AVG(T2.stars) = (SELECT AVG(T3.stars) FROM Rating AS T3 JOIN Movie AS T4 ON T3.mID = T4.mID GROUP BY T3.mID)", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 96, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2503", "db_id": "movie_1", "question": "For each director, what are the titles and ratings for all the movies they reviewed?", "gold_sql": "SELECT T2.title , T1.stars , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != \"null\" GROUP BY director", "raw_output": "SELECT T1.director, T2.title, T3.stars FROM Movie AS T1 JOIN Reviewer AS T2 ON T1.mID = T3.mID JOIN Rating AS T3 ON T2.rID = T3.rID GROUP BY T1.director, T2.title, T3.stars", "predicted_sql": "SELECT T1.director, T2.title, T3.stars FROM Movie AS T1 JOIN Reviewer AS T2 ON T1.mID = T3.mID JOIN Rating AS T3 ON T2.rID = T3.rID GROUP BY T1.director, T2.title, T3.stars", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.title", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2461", "db_id": "movie_1", "question": "What are the different names of all reviewers whose ratings do not have a date field?", "gold_sql": "SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = \"null\"", "raw_output": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.ratingDate IS NULL", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.ratingDate IS NULL", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2498", "db_id": "movie_1", "question": "What are the movie titles and average rating of the movies with the lowest average rating?", "gold_sql": "SELECT T2.title , avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY avg(T1.stars) LIMIT 1", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T2.stars) ASC LIMIT 1", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T2.stars) ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2515", "db_id": "movie_1", "question": "What is the average rating for each movie that has never been reviewed by Brittany Harris?", "gold_sql": "SELECT mID , avg(stars) FROM Rating WHERE mID NOT IN (SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\") GROUP BY mID", "raw_output": "SELECT AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Brittany Harris' GROUP BY T1.mID HAVING COUNT(CASE WHEN T3.name = 'Brittany Harris' THEN 1 END) = 0", "predicted_sql": "SELECT AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Brittany Harris' GROUP BY T1.mID HAVING COUNT(CASE WHEN T3.name = 'Brittany Harris' THEN 1 END) = 0", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 90, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2519", "db_id": "movie_1", "question": "For each movie that received more than 3 reviews, what is the average rating?", "gold_sql": "SELECT mID , avg(stars) FROM Rating GROUP BY mID HAVING count(*) >= 2", "raw_output": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID HAVING count(*) > 3", "predicted_sql": "SELECT T1.title, AVG(T2.stars) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.mID HAVING count(*) > 3", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2528", "db_id": "movie_1", "question": "What are the names of reviewers who had rated 3 star and 4 star?", "gold_sql": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4", "raw_output": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars = 3 OR T2.stars = 4", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars = 3 OR T2.stars = 4", "generation_status": "ok", "prompt_tokens": 221, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2469", "db_id": "movie_1", "question": "What are the names of all movies that were created after the most recent Steven Spielberg film?", "gold_sql": "SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = \"Steven Spielberg\")", "raw_output": "SELECT T1.title FROM Movie AS T1 WHERE T1.year > (SELECT MAX(year) FROM Movie WHERE director = 'Steven Spielberg')", "predicted_sql": "SELECT T1.title FROM Movie AS T1 WHERE T1.year > (SELECT MAX(year) FROM Movie WHERE director = 'Steven Spielberg')", "generation_status": "ok", "prompt_tokens": 222, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2517", "db_id": "movie_1", "question": "What are the ids of all moviest hat have not been reviewed by Britanny Harris?", "gold_sql": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\"", "raw_output": "SELECT T1.mID FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Britanny Harris' AND T2.mID IS NULL", "predicted_sql": "SELECT T1.mID FROM Movie AS T1 LEFT JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T2.rID = T3.rID WHERE T3.name != 'Britanny Harris' AND T2.mID IS NULL", "generation_status": "ok", "prompt_tokens": 222, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2501", "db_id": "movie_1", "question": "What are the names and years released for the movies with the top 3 highest ratings?", "gold_sql": "SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3", "raw_output": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID ORDER BY T2.stars DESC LIMIT 3", "predicted_sql": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID ORDER BY T2.stars DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 222, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2523", "db_id": "movie_1", "question": "What are the ids of all reviewers who have not given 4 stars at least once?", "gold_sql": "SELECT rID FROM Rating WHERE stars != 4", "raw_output": "SELECT T1.rID FROM Reviewer AS T1 LEFT JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars <> 4 OR T2.mID IS NULL GROUP BY T1.rID HAVING SUM(CASE WHEN T2.stars = 4 THEN 1 ELSE 0 END) = 0", "predicted_sql": "SELECT T1.rID FROM Reviewer AS T1 LEFT JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars <> 4 OR T2.mID IS NULL GROUP BY T1.rID HAVING SUM(CASE WHEN T2.stars = 4 THEN 1 ELSE 0 END) = 0", "generation_status": "ok", "prompt_tokens": 222, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2468", "db_id": "movie_1", "question": "What is the names of movies whose created year is after all movies directed by Steven Spielberg?", "gold_sql": "SELECT title FROM Movie WHERE YEAR > (SELECT max(YEAR) FROM Movie WHERE director = \"Steven Spielberg\")", "raw_output": "SELECT T1.title FROM Movie AS T1 WHERE T1.year > (SELECT MAX(T2.year) FROM Movie AS T2 JOIN Movie AS T3 ON T2.director = T3.director WHERE T3.director = 'Steven Spielberg')", "predicted_sql": "SELECT T1.title FROM Movie AS T1 WHERE T1.year > (SELECT MAX(T2.year) FROM Movie AS T2 JOIN Movie AS T3 ON T2.director = T3.director WHERE T3.director = 'Steven Spielberg')", "generation_status": "ok", "prompt_tokens": 222, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2437", "db_id": "movie_1", "question": "What are the titles of all movies that James Cameron directed after 2000?", "gold_sql": "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Reviewer AS T2 ON T1.mID = T2.mID WHERE T2.name = 'James Cameron' AND T1.year > 2000", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Reviewer AS T2 ON T1.mID = T2.mID WHERE T2.name = 'James Cameron' AND T1.year > 2000", "generation_status": "ok", "prompt_tokens": 222, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.mID", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2504", "db_id": "movie_1", "question": "Find the title and star rating of the movie that got the least rating star for each reviewer.", "gold_sql": "SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID", "raw_output": "SELECT T1.title, T2.stars FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.rID = (SELECT rID FROM Reviewer GROUP BY rID ORDER BY MIN(T2.stars) LIMIT 1)", "predicted_sql": "SELECT T1.title, T2.stars FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.rID = (SELECT rID FROM Reviewer GROUP BY rID ORDER BY MIN(T2.stars) LIMIT 1)", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "misuse of aggregate: MIN()", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2493", "db_id": "movie_1", "question": "What are the names of all directors who have made one movie except for the director named NULL?", "gold_sql": "SELECT director FROM Movie WHERE director != \"null\" GROUP BY director HAVING count(*) = 1", "raw_output": "SELECT T1.director FROM Movie AS T1 GROUP BY T1.director HAVING COUNT(T1.mID) = 1 AND T1.director != 'NULL'", "predicted_sql": "SELECT T1.director FROM Movie AS T1 GROUP BY T1.director HAVING COUNT(T1.mID) = 1 AND T1.director != 'NULL'", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2505", "db_id": "movie_1", "question": "For each reviewer id, what is the title and rating for the movie with the smallest rating?", "gold_sql": "SELECT T2.title , T1.rID , T1.stars , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.rID", "raw_output": "SELECT T1.title, T3.stars FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID ORDER BY T3.stars LIMIT 1", "predicted_sql": "SELECT T1.title, T3.stars FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID ORDER BY T3.stars LIMIT 1", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2513", "db_id": "movie_1", "question": "What are the names of the reviewers who have rated a movie more than 3 stars before?", "gold_sql": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars > 3", "raw_output": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars > 3", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars > 3", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2510", "db_id": "movie_1", "question": "What are the titles of all movies that have rating star is between 3 and 5?", "gold_sql": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5", "raw_output": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars BETWEEN 3 AND 5", "predicted_sql": "SELECT T1.title FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars BETWEEN 3 AND 5", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2500", "db_id": "movie_1", "question": "What are the names and years of the movies that has the top 3 highest rating star?", "gold_sql": "SELECT T2.title , T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3", "raw_output": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID ORDER BY T2.stars DESC LIMIT 3", "predicted_sql": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID ORDER BY T2.stars DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2529", "db_id": "movie_1", "question": "What are the names of all reviewers that have given 3 or 4 stars for reviews?", "gold_sql": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4", "raw_output": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars IN (3, 4)", "predicted_sql": "SELECT T1.name FROM Reviewer AS T1 INNER JOIN Rating AS T2 ON T1.rID = T2.rID WHERE T2.stars IN (3, 4)", "generation_status": "ok", "prompt_tokens": 223, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2506", "db_id": "movie_1", "question": "Find the title and score of the movie with the lowest rating among all movies directed by each director.", "gold_sql": "SELECT T2.title , T1.stars , T2.director , min(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director", "raw_output": "SELECT T1.title, T2.stars FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Movie AS T3 ON T1.mID = T3.mID WHERE T3.director = T1.director ORDER BY T2.stars LIMIT 1", "predicted_sql": "SELECT T1.title, T2.stars FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID JOIN Movie AS T3 ON T1.mID = T3.mID WHERE T3.director = T1.director ORDER BY T2.stars LIMIT 1", "generation_status": "ok", "prompt_tokens": 224, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2436", "db_id": "movie_1", "question": "What is the name of the movie produced after 2000 and directed by James Cameron?", "gold_sql": "SELECT title FROM Movie WHERE director = 'James Cameron' AND YEAR > 2000", "raw_output": "SELECT T1.title FROM Movie AS T1 WHERE T1.year > 2000 AND T1.director = 'James Cameron'", "predicted_sql": "SELECT T1.title FROM Movie AS T1 WHERE T1.year > 2000 AND T1.director = 'James Cameron'", "generation_status": "ok", "prompt_tokens": 224, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2471", "db_id": "movie_1", "question": "What are the titles and directors of all movies that have a rating higher than the average James Cameron film rating?", "gold_sql": "SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = \"James Cameron\")", "raw_output": "SELECT T1.title, T1.director FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars > (SELECT AVG(T3.stars) FROM Rating AS T3 INNER JOIN Movie AS T4 ON T3.mID = T4.mID WHERE T4.director = 'James Cameron')", "predicted_sql": "SELECT T1.title, T1.director FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars > (SELECT AVG(T3.stars) FROM Rating AS T3 INNER JOIN Movie AS T4 ON T3.mID = T4.mID WHERE T4.director = 'James Cameron')", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 82, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2524", "db_id": "movie_1", "question": "What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?", "gold_sql": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000", "raw_output": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T1.year > 2000 OR T2.rID = (SELECT rID FROM Reviewer WHERE name = 'Brittany Harris')", "predicted_sql": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T1.year > 2000 OR T2.rID = (SELECT rID FROM Reviewer WHERE name = 'Brittany Harris')", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2527", "db_id": "movie_1", "question": "What are the names of all movies made before 1980 or had James Cameron as the director?", "gold_sql": "SELECT title FROM Movie WHERE director = \"James Cameron\" OR YEAR < 1980", "raw_output": "SELECT title FROM Movie WHERE year < 1980 OR director = 'James Cameron'", "predicted_sql": "SELECT title FROM Movie WHERE year < 1980 OR director = 'James Cameron'", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2525", "db_id": "movie_1", "question": "What are the names of all movies that were made after 2000 or reviewed by Brittany Harris?", "gold_sql": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000", "raw_output": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T1.year > 2000 OR T2.rID = (SELECT rID FROM Reviewer WHERE name = 'Brittany Harris')", "predicted_sql": "SELECT T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T1.year > 2000 OR T2.rID = (SELECT rID FROM Reviewer WHERE name = 'Brittany Harris')", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2488", "db_id": "movie_1", "question": "For directors who had more than one movie, return the titles and produced years of all movies directed by them.", "gold_sql": "SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title", "raw_output": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director", "predicted_sql": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2487", "db_id": "movie_1", "question": "For all directors who have directed more than one movie, what movies have they directed and what are their names?", "gold_sql": "SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title", "raw_output": "SELECT T1.title, T1.director FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director", "predicted_sql": "SELECT T1.title, T1.director FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2526", "db_id": "movie_1", "question": "What are names of the movies that are either made before 1980 or directed by James Cameron?", "gold_sql": "SELECT title FROM Movie WHERE director = \"James Cameron\" OR YEAR < 1980", "raw_output": "SELECT T1.title FROM Movie AS T1 WHERE T1.year < 1980 OR T1.director = 'James Cameron'", "predicted_sql": "SELECT T1.title FROM Movie AS T1 WHERE T1.year < 1980 OR T1.director = 'James Cameron'", "generation_status": "ok", "prompt_tokens": 226, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2489", "db_id": "movie_1", "question": "For each director who directed more than one movie, what are the titles and dates of release for all those movies?", "gold_sql": "SELECT T1.title , T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title", "raw_output": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director", "predicted_sql": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director", "generation_status": "ok", "prompt_tokens": 227, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2454", "db_id": "movie_1", "question": "What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.", "gold_sql": "SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5", "raw_output": "SELECT T1.director, T2.title FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID WHERE T3.stars = 5", "predicted_sql": "SELECT T1.director, T2.title FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID WHERE T3.stars = 5", "generation_status": "ok", "prompt_tokens": 227, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.title", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2470", "db_id": "movie_1", "question": "What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?", "gold_sql": "SELECT T2.title , T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT avg(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = \"James Cameron\")", "raw_output": "SELECT T1.title, T1.director FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars > (SELECT AVG(T3.stars) FROM Rating AS T3 INNER JOIN Movie AS T4 ON T3.mID = T4.mID WHERE T4.director = 'James Cameron')", "predicted_sql": "SELECT T1.title, T1.director FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars > (SELECT AVG(T3.stars) FROM Rating AS T3 INNER JOIN Movie AS T4 ON T3.mID = T4.mID WHERE T4.director = 'James Cameron')", "generation_status": "ok", "prompt_tokens": 229, "generated_tokens": 82, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2453", "db_id": "movie_1", "question": "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?", "gold_sql": "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year", "raw_output": "SELECT DISTINCT T1.year FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year;", "predicted_sql": "SELECT DISTINCT T1.year FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year;", "generation_status": "ok", "prompt_tokens": 230, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2481", "db_id": "movie_1", "question": "What are the different reviewer names, movie titles, and stars for every rating where the reviewer had the same name as the director?", "gold_sql": "SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name", "raw_output": "SELECT T1.name, T2.title, T3.stars FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID WHERE T1.name = T2.director", "predicted_sql": "SELECT T1.name, T2.title, T3.stars FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID WHERE T1.name = T2.director", "generation_status": "ok", "prompt_tokens": 230, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2452", "db_id": "movie_1", "question": "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.", "gold_sql": "SELECT DISTINCT YEAR FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year", "raw_output": "SELECT DISTINCT T1.year FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year;", "predicted_sql": "SELECT DISTINCT T1.year FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year;", "generation_status": "ok", "prompt_tokens": 231, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2455", "db_id": "movie_1", "question": "What are the names of the directors who created a movie with a 5 star rating, and what was the name of those movies?", "gold_sql": "SELECT T1.director , T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5", "raw_output": "SELECT T1.director, T2.title FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID JOIN Movie AS T2 ON T3.mID = T2.mID WHERE T3.stars = 5", "predicted_sql": "SELECT T1.director, T2.title FROM Movie AS T1 JOIN Rating AS T3 ON T1.mID = T3.mID JOIN Movie AS T2 ON T3.mID = T2.mID WHERE T3.stars = 5", "generation_status": "ok", "prompt_tokens": 231, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2480", "db_id": "movie_1", "question": "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.", "gold_sql": "SELECT DISTINCT T3.name , T2.title , T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name", "raw_output": "SELECT T1.name, T2.title, T3.stars FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID WHERE T1.name = T2.director", "predicted_sql": "SELECT T1.name, T2.title, T3.stars FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID WHERE T1.name = T2.director", "generation_status": "ok", "prompt_tokens": 235, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2473", "db_id": "movie_1", "question": "What is the reviewer name, film title, movie rating, and rating date for every movie ordered by reviewer name, movie title, then finally rating?", "gold_sql": "SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars", "raw_output": "SELECT T1.name, T2.title, T3.stars, T3.ratingDate FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID ORDER BY T1.name, T2.title, T3.stars", "predicted_sql": "SELECT T1.name, T2.title, T3.stars, T3.ratingDate FROM Reviewer AS T1 JOIN Rating AS T3 ON T1.rID = T3.rID JOIN Movie AS T2 ON T3.mID = T2.mID ORDER BY T1.name, T2.title, T3.stars", "generation_status": "ok", "prompt_tokens": 235, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2472", "db_id": "movie_1", "question": "Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars.", "gold_sql": "SELECT T3.name , T2.title , T1.stars , T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name , T2.title , T1.stars", "raw_output": "SELECT T2.name,T1.title,T3.stars,T3.ratingDate FROM Rating AS T3 JOIN Reviewer AS T2 ON T3.rID = T2.rID JOIN Movie AS T1 ON T3.mID = T1.mID ORDER BY T2.name,T1.title,T3.stars", "predicted_sql": "SELECT T2.name,T1.title,T3.stars,T3.ratingDate FROM Rating AS T3 JOIN Reviewer AS T2 ON T3.rID = T2.rID JOIN Movie AS T1 ON T3.mID = T1.mID ORDER BY T2.name,T1.title,T3.stars", "generation_status": "ok", "prompt_tokens": 238, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2486", "db_id": "movie_1", "question": "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title.", "gold_sql": "SELECT T1.title , T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title != T2.title ORDER BY T1.director , T1.title", "raw_output": "SELECT T1.title, T1.director FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director ORDER BY T1.director, T1.title", "predicted_sql": "SELECT T1.title, T1.director FROM Movie AS T1 JOIN (SELECT director FROM Movie GROUP BY director HAVING count(*) > 1) AS T2 ON T1.director = T2.director ORDER BY T1.director, T1.title", "generation_status": "ok", "prompt_tokens": 239, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:276", "db_id": "twitter_1", "question": "How many users are there?", "gold_sql": "SELECT count(*) FROM user_profiles", "raw_output": "SELECT count(*) FROM user_profiles", "predicted_sql": "SELECT count(*) FROM user_profiles", "generation_status": "ok", "prompt_tokens": 241, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:277", "db_id": "twitter_1", "question": "How many followers does each user have?", "gold_sql": "SELECT count(*) FROM follows", "raw_output": "SELECT T1.uid, T1.followers FROM user_profiles AS T1", "predicted_sql": "SELECT T1.uid, T1.followers FROM user_profiles AS T1", "generation_status": "ok", "prompt_tokens": 243, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:279", "db_id": "twitter_1", "question": "Find the number of tweets in record.", "gold_sql": "SELECT count(*) FROM tweets", "raw_output": "SELECT count(T1.id) FROM tweets AS T1 WHERE T1.id = 1", "predicted_sql": "SELECT count(T1.id) FROM tweets AS T1 WHERE T1.id = 1", "generation_status": "ok", "prompt_tokens": 243, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:278", "db_id": "twitter_1", "question": "Find the number of followers for each user.", "gold_sql": "SELECT count(*) FROM follows GROUP BY f1", "raw_output": "SELECT followers FROM user_profiles", "predicted_sql": "SELECT followers FROM user_profiles", "generation_status": "ok", "prompt_tokens": 244, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:274", "db_id": "twitter_1", "question": "Find the emails of the user named \"Mary\".", "gold_sql": "SELECT email FROM user_profiles WHERE name = 'Mary'", "raw_output": "SELECT email FROM user_profiles WHERE name = 'Mary'", "predicted_sql": "SELECT email FROM user_profiles WHERE name = 'Mary'", "generation_status": "ok", "prompt_tokens": 245, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:280", "db_id": "twitter_1", "question": "Find the number of users who posted some tweets.", "gold_sql": "SELECT count(DISTINCT UID) FROM tweets", "raw_output": "SELECT count(DISTINCT T1.uid) FROM tweets AS T1", "predicted_sql": "SELECT count(DISTINCT T1.uid) FROM tweets AS T1", "generation_status": "ok", "prompt_tokens": 245, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:283", "db_id": "twitter_1", "question": "Return the text of tweets about the topic 'intern'.", "gold_sql": "SELECT text FROM tweets WHERE text LIKE '%intern%'", "raw_output": "SELECT T1.text FROM tweets AS T1 INNER JOIN user_profiles AS T2 ON T1.uid = T2.uid WHERE T1.text LIKE '%intern%';", "predicted_sql": "SELECT T1.text FROM tweets AS T1 INNER JOIN user_profiles AS T2 ON T1.uid = T2.uid WHERE T1.text LIKE '%intern%';", "generation_status": "ok", "prompt_tokens": 246, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:287", "db_id": "twitter_1", "question": "Find the names of users who have more than one tweet.", "gold_sql": "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1", "raw_output": "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid HAVING count(*) > 1", "predicted_sql": "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid HAVING count(*) > 1", "generation_status": "ok", "prompt_tokens": 247, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:294", "db_id": "twitter_1", "question": "List the text of all tweets in the order of date.", "gold_sql": "SELECT text FROM tweets ORDER BY createdate", "raw_output": "SELECT T1.text FROM tweets AS T1 ORDER BY T1.createdate", "predicted_sql": "SELECT T1.text FROM tweets AS T1 ORDER BY T1.createdate", "generation_status": "ok", "prompt_tokens": 247, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:300", "db_id": "twitter_1", "question": "Find the maximum and total number of followers of all users.", "gold_sql": "SELECT max(followers) , sum(followers) FROM user_profiles", "raw_output": "SELECT MAX(followers), SUM(followers) FROM user_profiles", "predicted_sql": "SELECT MAX(followers), SUM(followers) FROM user_profiles", "generation_status": "ok", "prompt_tokens": 247, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2502", "db_id": "movie_1", "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "gold_sql": "SELECT T2.title , T1.stars , T2.director , max(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director != \"null\" GROUP BY director", "raw_output": "SELECT T1.director, T2.title, T2.stars FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T1.director IS NOT NULL GROUP BY T1.director ORDER BY T2.stars DESC LIMIT 1", "predicted_sql": "SELECT T1.director, T2.title, T2.stars FROM Movie AS T1 INNER JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T1.director IS NOT NULL GROUP BY T1.director ORDER BY T2.stars DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 248, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.title", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:288", "db_id": "twitter_1", "question": "Find the id of users who are followed by Mary and Susan.", "gold_sql": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Susan\"", "raw_output": "SELECT T1.f2 FROM follows AS T1 JOIN user_profiles AS T2 ON T1.f1 = T2.uid WHERE T1.f1 = (SELECT uid FROM user_profiles WHERE name = 'Mary') AND T1.f2 = (SELECT uid FROM user_profiles WHERE name = 'Susan')", "predicted_sql": "SELECT T1.f2 FROM follows AS T1 JOIN user_profiles AS T2 ON T1.f1 = T2.uid WHERE T1.f1 = (SELECT uid FROM user_profiles WHERE name = 'Mary') AND T1.f2 = (SELECT uid FROM user_profiles WHERE name = 'Susan')", "generation_status": "ok", "prompt_tokens": 248, "generated_tokens": 70, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:289", "db_id": "twitter_1", "question": "Find the id of users who are followed by Mary or Susan.", "gold_sql": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" OR T1.name = \"Susan\"", "raw_output": "SELECT T1.f1 FROM follows AS T1 JOIN user_profiles AS T2 ON T1.f2 = T2.uid WHERE T2.name = 'Mary' OR T2.name = 'Susan'", "predicted_sql": "SELECT T1.f1 FROM follows AS T1 JOIN user_profiles AS T2 ON T1.f2 = T2.uid WHERE T2.name = 'Mary' OR T2.name = 'Susan'", "generation_status": "ok", "prompt_tokens": 248, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:275", "db_id": "twitter_1", "question": "What is the partition id of the user named \"Iron Man\".", "gold_sql": "SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'", "raw_output": "SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'", "predicted_sql": "SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'", "generation_status": "ok", "prompt_tokens": 248, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:299", "db_id": "twitter_1", "question": "Find the average number of followers for the users who had some tweets.", "gold_sql": "SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)", "raw_output": "SELECT AVG(T1.followers) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid", "predicted_sql": "SELECT AVG(T1.followers) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid", "generation_status": "ok", "prompt_tokens": 249, "generated_tokens": 31, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:296", "db_id": "twitter_1", "question": "Find the name and partition id for users who tweeted less than twice.", "gold_sql": "SELECT T1.name , T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) < 2", "raw_output": "SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid HAVING count(*) < 2", "predicted_sql": "SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid HAVING count(*) < 2", "generation_status": "ok", "prompt_tokens": 249, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:290", "db_id": "twitter_1", "question": "Find the name of the user who has the largest number of followers.", "gold_sql": "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1", "raw_output": "SELECT T1.name FROM user_profiles AS T1 ORDER BY T1.followers DESC LIMIT 1", "predicted_sql": "SELECT T1.name FROM user_profiles AS T1 ORDER BY T1.followers DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 249, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:286", "db_id": "twitter_1", "question": "Find the name and email for the users who have more than one follower.", "gold_sql": "SELECT T1.name , T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > 1", "raw_output": "SELECT name, email FROM user_profiles WHERE followers > 1", "predicted_sql": "SELECT name, email FROM user_profiles WHERE followers > 1", "generation_status": "ok", "prompt_tokens": 250, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:293", "db_id": "twitter_1", "question": "List the names of 5 users followed by the largest number of other users.", "gold_sql": "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5", "raw_output": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T1.uid ORDER BY count(T2.f2) DESC LIMIT 5", "predicted_sql": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T1.uid ORDER BY count(T2.f2) DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 251, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:295", "db_id": "twitter_1", "question": "Find the name of each user and number of tweets tweeted by each of them.", "gold_sql": "SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid", "raw_output": "SELECT T1.name, COUNT(T2.id) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid, T1.name", "predicted_sql": "SELECT T1.name, COUNT(T2.id) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid, T1.name", "generation_status": "ok", "prompt_tokens": 251, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:291", "db_id": "twitter_1", "question": "Find the name and email of the user followed by the least number of people.", "gold_sql": "SELECT name , email FROM user_profiles ORDER BY followers LIMIT 1", "raw_output": "SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 GROUP BY T1.uid ORDER BY SUM(T2.f1) DESC LIMIT 1", "predicted_sql": "SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 GROUP BY T1.uid ORDER BY SUM(T2.f1) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 251, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:281", "db_id": "twitter_1", "question": "Find the name and email of the user whose name contains the word ‘Swift’.", "gold_sql": "SELECT name , email FROM user_profiles WHERE name LIKE '%Swift%'", "raw_output": "SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%';", "predicted_sql": "SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%';", "generation_status": "ok", "prompt_tokens": 251, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:298", "db_id": "twitter_1", "question": "Find the average number of followers for the users who do not have any tweet.", "gold_sql": "SELECT avg(followers) FROM user_profiles WHERE UID NOT IN (SELECT UID FROM tweets)", "raw_output": "SELECT AVG(T1.followers) FROM user_profiles AS T1 LEFT JOIN tweets AS T2 ON T1.uid = T2.uid WHERE T2.id IS NULL", "predicted_sql": "SELECT AVG(T1.followers) FROM user_profiles AS T1 LEFT JOIN tweets AS T2 ON T1.uid = T2.uid WHERE T2.id IS NULL", "generation_status": "ok", "prompt_tokens": 251, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:282", "db_id": "twitter_1", "question": "Find the names of users whose emails contain ‘superstar’ or ‘edu’.", "gold_sql": "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'", "raw_output": "SELECT T1.name FROM user_profiles AS T1 WHERE T1.email LIKE '%superstar%' OR T1.email LIKE '%edu%'", "predicted_sql": "SELECT T1.name FROM user_profiles AS T1 WHERE T1.email LIKE '%superstar%' OR T1.email LIKE '%edu%'", "generation_status": "ok", "prompt_tokens": 251, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4484", "db_id": "decoration_competition", "question": "How many members are there?", "gold_sql": "SELECT count(*) FROM member", "raw_output": "SELECT count(*) FROM member", "predicted_sql": "SELECT count(*) FROM member", "generation_status": "ok", "prompt_tokens": 252, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4250", "db_id": "club_1", "question": "How many clubs are there?", "gold_sql": "SELECT count(*) FROM club", "raw_output": "SELECT count(*) FROM Club", "predicted_sql": "SELECT count(*) FROM Club", "generation_status": "ok", "prompt_tokens": 254, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4254", "db_id": "club_1", "question": "How many students are there?", "gold_sql": "SELECT count(*) FROM student", "raw_output": "SELECT count(*) FROM Student", "predicted_sql": "SELECT count(*) FROM Student", "generation_status": "ok", "prompt_tokens": 254, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:284", "db_id": "twitter_1", "question": "Find the name and email of the users who have more than 1000 followers.", "gold_sql": "SELECT name , email FROM user_profiles WHERE followers > 1000", "raw_output": "SELECT name, email FROM user_profiles WHERE followers > 1000", "predicted_sql": "SELECT name, email FROM user_profiles WHERE followers > 1000", "generation_status": "ok", "prompt_tokens": 254, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4490", "db_id": "decoration_competition", "question": "Which countries have more than two members?", "gold_sql": "SELECT Country FROM member GROUP BY Country HAVING COUNT(*) > 2", "raw_output": "SELECT Country FROM member GROUP BY Country HAVING count(*) > 2", "predicted_sql": "SELECT Country FROM member GROUP BY Country HAVING count(*) > 2", "generation_status": "ok", "prompt_tokens": 254, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4489", "db_id": "decoration_competition", "question": "Show the most common country across members.", "gold_sql": "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Country FROM member GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 254, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:297", "db_id": "twitter_1", "question": "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.", "gold_sql": "SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1", "raw_output": "SELECT T1.name, COUNT(T2.id) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid HAVING COUNT(T2.id) > 1", "predicted_sql": "SELECT T1.name, COUNT(T2.id) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T1.uid HAVING COUNT(T2.id) > 1", "generation_status": "ok", "prompt_tokens": 255, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4486", "db_id": "decoration_competition", "question": "What are the names and countries of members?", "gold_sql": "SELECT Name , Country FROM member", "raw_output": "SELECT T1.Name, T1.Country FROM member AS T1", "predicted_sql": "SELECT T1.Name, T1.Country FROM member AS T1", "generation_status": "ok", "prompt_tokens": 255, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4491", "db_id": "decoration_competition", "question": "Show the leader names and locations of colleges.", "gold_sql": "SELECT Leader_Name , College_Location FROM college", "raw_output": "SELECT Name, College_Location FROM college", "predicted_sql": "SELECT Name, College_Location FROM college", "generation_status": "ok", "prompt_tokens": 255, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2802", "db_id": "news_report", "question": "How many journalists are there?", "gold_sql": "SELECT count(*) FROM journalist", "raw_output": "SELECT count(*) FROM journalist", "predicted_sql": "SELECT count(*) FROM journalist", "generation_status": "ok", "prompt_tokens": 255, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4255", "db_id": "club_1", "question": "Count the total number of students.", "gold_sql": "SELECT count(*) FROM student", "raw_output": "SELECT count(*) FROM Student", "predicted_sql": "SELECT count(*) FROM Student", "generation_status": "ok", "prompt_tokens": 255, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4251", "db_id": "club_1", "question": "Count the total number of clubs.", "gold_sql": "SELECT count(*) FROM club", "raw_output": "SELECT count(*) FROM Club", "predicted_sql": "SELECT count(*) FROM Club", "generation_status": "ok", "prompt_tokens": 255, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4485", "db_id": "decoration_competition", "question": "List the names of members in ascending alphabetical order.", "gold_sql": "SELECT Name FROM member ORDER BY Name ASC", "raw_output": "SELECT T1.Name FROM member AS T1 ORDER BY T1.Name;", "predicted_sql": "SELECT T1.Name FROM member AS T1 ORDER BY T1.Name;", "generation_status": "ok", "prompt_tokens": 256, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4252", "db_id": "club_1", "question": "What are the names of all clubs?", "gold_sql": "SELECT clubname FROM club", "raw_output": "SELECT ClubName FROM Club", "predicted_sql": "SELECT ClubName FROM Club", "generation_status": "ok", "prompt_tokens": 256, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4253", "db_id": "club_1", "question": "Give me the name of each club.", "gold_sql": "SELECT clubname FROM club", "raw_output": "SELECT ClubName FROM Club", "predicted_sql": "SELECT ClubName FROM Club", "generation_status": "ok", "prompt_tokens": 256, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4257", "db_id": "club_1", "question": "Find each student's first name.", "gold_sql": "SELECT DISTINCT fname FROM student", "raw_output": "SELECT T1.Fname FROM Student AS T1", "predicted_sql": "SELECT T1.Fname FROM Student AS T1", "generation_status": "ok", "prompt_tokens": 256, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2809", "db_id": "news_report", "question": "Show the most common nationality for journalists.", "gold_sql": "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 257, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:285", "db_id": "twitter_1", "question": "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\".", "gold_sql": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')", "raw_output": "SELECT T1.name FROM user_profiles AS T1 WHERE T1.followers > (SELECT T2.followers FROM user_profiles AS T2 WHERE T2.name = 'Tyler Swift');", "predicted_sql": "SELECT T1.name FROM user_profiles AS T1 WHERE T1.followers > (SELECT T2.followers FROM user_profiles AS T2 WHERE T2.name = 'Tyler Swift');", "generation_status": "ok", "prompt_tokens": 257, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4256", "db_id": "club_1", "question": "What are the first names of all the students?", "gold_sql": "SELECT DISTINCT fname FROM student", "raw_output": "SELECT Fname FROM Student", "predicted_sql": "SELECT Fname FROM Student", "generation_status": "ok", "prompt_tokens": 258, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4495", "db_id": "decoration_competition", "question": "Show the names of members and the decoration themes they have.", "gold_sql": "SELECT T1.Name , T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID", "raw_output": "SELECT T1.Name, T3.Decoration_Theme FROM member AS T1 JOIN round AS T3 ON T1.Member_ID = T3.Member_ID", "predicted_sql": "SELECT T1.Name, T3.Decoration_Theme FROM member AS T1 JOIN round AS T3 ON T1.Member_ID = T3.Member_ID", "generation_status": "ok", "prompt_tokens": 258, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4488", "db_id": "decoration_competition", "question": "Show the different countries and the number of members from each.", "gold_sql": "SELECT Country , COUNT(*) FROM member GROUP BY Country", "raw_output": "SELECT Country, count(Member_ID) FROM member GROUP BY Country", "predicted_sql": "SELECT Country, count(Member_ID) FROM member GROUP BY Country", "generation_status": "ok", "prompt_tokens": 258, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2804", "db_id": "news_report", "question": "What are the nationalities and ages of journalists?", "gold_sql": "SELECT Nationality , Age FROM journalist", "raw_output": "SELECT Nationality, Age FROM journalist", "predicted_sql": "SELECT Nationality, Age FROM journalist", "generation_status": "ok", "prompt_tokens": 258, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4263", "db_id": "club_1", "question": "Count the members of the club \"Tennis Club\".", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Tennis Club'", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 258, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4292", "db_id": "club_1", "question": "How many clubs are located at \"HHH\"?", "gold_sql": "SELECT count(*) FROM club WHERE clublocation = \"HHH\"", "raw_output": "SELECT count(DISTINCT T1.ClubID) FROM Club AS T1 INNER JOIN Club AS T2 ON T1.ClubLocation = T2.ClubLocation WHERE T2.ClubLocation = 'HHH'", "predicted_sql": "SELECT count(DISTINCT T1.ClubID) FROM Club AS T1 INNER JOIN Club AS T2 ON T1.ClubLocation = T2.ClubLocation WHERE T2.ClubLocation = 'HHH'", "generation_status": "ok", "prompt_tokens": 258, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4498", "db_id": "decoration_competition", "question": "List the names of members who did not participate in any round.", "gold_sql": "SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM round)", "raw_output": "SELECT T1.Name FROM member AS T1 LEFT JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Round_ID IS NULL", "predicted_sql": "SELECT T1.Name FROM member AS T1 LEFT JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Round_ID IS NULL", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4266", "db_id": "club_1", "question": "How many clubs does \"Linda Smith\" belong to?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"", "raw_output": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Smith' AND T1.Fname = 'Linda';", "predicted_sql": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Smith' AND T1.Fname = 'Linda';", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4492", "db_id": "decoration_competition", "question": "Show the names of members and names of colleges they go to.", "gold_sql": "SELECT T2.Name , T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID", "raw_output": "SELECT T1.Name, T2.Name FROM member AS T1 JOIN college AS T2 ON T1.College_ID = T2.College_ID", "predicted_sql": "SELECT T1.Name, T2.Name FROM member AS T1 JOIN college AS T2 ON T1.College_ID = T2.College_ID", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4293", "db_id": "club_1", "question": "Count the number of clubs located at \"HHH\".", "gold_sql": "SELECT count(*) FROM club WHERE clublocation = \"HHH\"", "raw_output": "SELECT count(*) FROM Club WHERE ClubLocation = 'HHH'", "predicted_sql": "SELECT count(*) FROM Club WHERE ClubLocation = 'HHH'", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4281", "db_id": "club_1", "question": "Find the description of the club called \"Tennis Club\".", "gold_sql": "SELECT clubdesc FROM club WHERE clubname = \"Tennis Club\"", "raw_output": "SELECT T1.ClubDesc FROM Club AS T1 WHERE T1.ClubName = 'Tennis Club'", "predicted_sql": "SELECT T1.ClubDesc FROM Club AS T1 WHERE T1.ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:292", "db_id": "twitter_1", "question": "List the name and number of followers for each user, and sort the results by the number of followers in descending order.", "gold_sql": "SELECT name , followers FROM user_profiles ORDER BY followers DESC", "raw_output": "SELECT name, followers FROM user_profiles ORDER BY followers DESC", "predicted_sql": "SELECT name, followers FROM user_profiles ORDER BY followers DESC", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4285", "db_id": "club_1", "question": "Where us the club named \"Tennis Club\" located?", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Tennis Club\"", "raw_output": "SELECT ClubLocation FROM Club WHERE ClubName = 'Tennis Club'", "predicted_sql": "SELECT ClubLocation FROM Club WHERE ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 259, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4310", "db_id": "club_1", "question": "List the clubs having \"Davis Steven\" as a member.", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Davis\" AND t3.lname = \"Steven\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.LName = 'Davis' AND T3.Fname = 'Steven'", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.LName = 'Davis' AND T3.Fname = 'Steven'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 70, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4288", "db_id": "club_1", "question": "Where is the club \"Hopkins Student Enterprises\" located?", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT ClubLocation FROM Club WHERE ClubName = 'Hopkins Student Enterprises'", "predicted_sql": "SELECT ClubLocation FROM Club WHERE ClubName = 'Hopkins Student Enterprises'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4286", "db_id": "club_1", "question": "Find the location of the club \"Pen and Paper Gaming\".", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT T2.ClubLocation FROM Club AS T1 INNER JOIN Member_of_club AS T3 ON T1.ClubID = T3.ClubID INNER JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T1.ClubName = 'Pen and Paper Gaming'", "predicted_sql": "SELECT T2.ClubLocation FROM Club AS T1 INNER JOIN Member_of_club AS T3 ON T1.ClubID = T3.ClubID INNER JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T1.ClubName = 'Pen and Paper Gaming'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4267", "db_id": "club_1", "question": "How many clubs does \"Linda Smith\" have membership for?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"", "raw_output": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Smith' AND T1.Fname = 'Linda';", "predicted_sql": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Smith' AND T1.Fname = 'Linda';", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4262", "db_id": "club_1", "question": "How many members does the club \"Tennis Club\" has?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Tennis Club'", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4269", "db_id": "club_1", "question": "For how many clubs is \"Tracy Kim\" a member?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Tracy\" AND t3.lname = \"Kim\"", "raw_output": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Kim' AND T1.Fname = 'Tracy';", "predicted_sql": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Kim' AND T1.Fname = 'Tracy';", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4287", "db_id": "club_1", "question": "Where is the club \"Pen and Paper Gaming\" located?", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT T1.ClubLocation FROM Club AS T1 WHERE T1.ClubName = 'Pen and Paper Gaming'", "predicted_sql": "SELECT T1.ClubLocation FROM Club AS T1 WHERE T1.ClubName = 'Pen and Paper Gaming'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4282", "db_id": "club_1", "question": "Find the description of the club \"Pen and Paper Gaming\".", "gold_sql": "SELECT clubdesc FROM club WHERE clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT T1.ClubDesc FROM Club AS T1 WHERE T1.ClubName = 'Pen and Paper Gaming'", "predicted_sql": "SELECT T1.ClubDesc FROM Club AS T1 WHERE T1.ClubName = 'Pen and Paper Gaming'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4497", "db_id": "decoration_competition", "question": "Show the names of members in ascending order of their rank in rounds.", "gold_sql": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round ASC", "raw_output": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY T2.Rank_in_Round;", "predicted_sql": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY T2.Rank_in_Round;", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4290", "db_id": "club_1", "question": "Find the name of all the clubs at \"AKW\".", "gold_sql": "SELECT clubname FROM club WHERE clublocation = \"AKW\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 INNER JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID INNER JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'AKW'", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 INNER JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID INNER JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'AKW'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4280", "db_id": "club_1", "question": "What is the description of the club named \"Tennis Club\"?", "gold_sql": "SELECT clubdesc FROM club WHERE clubname = \"Tennis Club\"", "raw_output": "SELECT ClubDesc FROM Club WHERE ClubName = 'Tennis Club'", "predicted_sql": "SELECT ClubDesc FROM Club WHERE ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4284", "db_id": "club_1", "question": "What is the location of the club named \"Tennis Club\"?", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Tennis Club\"", "raw_output": "SELECT T1.ClubLocation FROM Club AS T1 WHERE T1.ClubName = 'Tennis Club'", "predicted_sql": "SELECT T1.ClubLocation FROM Club AS T1 WHERE T1.ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 260, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4276", "db_id": "club_1", "question": "Which club has the most members majoring in \"600\"?", "gold_sql": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = \"600\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Major = 600 GROUP BY T1.ClubName ORDER BY COUNT(T2.StuID) DESC LIMIT 1", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Major = 600 GROUP BY T1.ClubName ORDER BY COUNT(T2.StuID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4278", "db_id": "club_1", "question": "Find the name of the club that has the most female students.", "gold_sql": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T2.ClubName FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T1.StuID = T3.StuID WHERE T3.Sex = 'F' GROUP BY T2.ClubName ORDER BY COUNT(T1.StuID) DESC LIMIT 1", "predicted_sql": "SELECT T2.ClubName FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T1.StuID = T3.StuID WHERE T3.Sex = 'F' GROUP BY T2.ClubName ORDER BY COUNT(T1.StuID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 80, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4264", "db_id": "club_1", "question": "Find the number of members of club \"Pen and Paper Gaming\".", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Pen and Paper Gaming'", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Pen and Paper Gaming'", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2803", "db_id": "news_report", "question": "List the names of journalists in ascending order of years working.", "gold_sql": "SELECT Name FROM journalist ORDER BY Years_working ASC", "raw_output": "SELECT Name FROM journalist ORDER BY Years_working ASC", "predicted_sql": "SELECT Name FROM journalist ORDER BY Years_working ASC", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4283", "db_id": "club_1", "question": "What is the description of the club \"Pen and Paper Gaming\"?", "gold_sql": "SELECT clubdesc FROM club WHERE clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT ClubDesc FROM Club WHERE ClubName = 'Pen and Paper Gaming'", "predicted_sql": "SELECT ClubDesc FROM Club WHERE ClubName = 'Pen and Paper Gaming'", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4289", "db_id": "club_1", "question": "Tell me the location of the club \"Hopkins Student Enterprises\".", "gold_sql": "SELECT clublocation FROM club WHERE clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT T2.ClubLocation FROM Club AS T1 INNER JOIN Member_of_club AS T3 ON T1.ClubID = T3.ClubID INNER JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T1.ClubName = 'Hopkins Student Enterprises'", "predicted_sql": "SELECT T2.ClubLocation FROM Club AS T1 INNER JOIN Member_of_club AS T3 ON T1.ClubID = T3.ClubID INNER JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T1.ClubName = 'Hopkins Student Enterprises'", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2817", "db_id": "news_report", "question": "what are the average and maximum attendances of all events?", "gold_sql": "SELECT avg(Event_Attendance) , max(Event_Attendance) FROM event", "raw_output": "SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event", "predicted_sql": "SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4494", "db_id": "decoration_competition", "question": "Show the distinct leader names of colleges associated with members from country \"Canada\".", "gold_sql": "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = \"Canada\"", "raw_output": "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = 'Canada'", "predicted_sql": "SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = 'Canada'", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4318", "db_id": "club_1", "question": "Retrieve the average age of members of the club \"Tennis Club\".", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "raw_output": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Tennis Club'", "predicted_sql": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2816", "db_id": "news_report", "question": "List the names of journalists who have not reported any event.", "gold_sql": "SELECT Name FROM journalist WHERE journalist_ID NOT IN (SELECT journalist_ID FROM news_report)", "raw_output": "SELECT T1.Name FROM journalist AS T1 LEFT JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID WHERE T2.Event_ID IS NULL", "predicted_sql": "SELECT T1.Name FROM journalist AS T1 LEFT JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID WHERE T2.Event_ID IS NULL", "generation_status": "ok", "prompt_tokens": 261, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2806", "db_id": "news_report", "question": "What is the average number of years spent working as a journalist?", "gold_sql": "SELECT avg(Years_working) FROM journalist", "raw_output": "SELECT AVG(Years_working) FROM journalist", "predicted_sql": "SELECT AVG(Years_working) FROM journalist", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2814", "db_id": "news_report", "question": "Show the names of journalists and the number of events they reported.", "gold_sql": "SELECT T3.Name , COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name", "raw_output": "SELECT T1.Name, count(T2.Event_ID) FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID GROUP BY T1.Name", "predicted_sql": "SELECT T1.Name, count(T2.Event_ID) FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID GROUP BY T1.Name", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2815", "db_id": "news_report", "question": "Show the names of journalists that have reported more than one event.", "gold_sql": "SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1", "raw_output": "SELECT T1.Name FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID JOIN event AS T3 ON T2.Event_ID = T3.Event_ID GROUP BY T1.Name HAVING count(*) > 1", "predicted_sql": "SELECT T1.Name FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID JOIN event AS T3 ON T2.Event_ID = T3.Event_ID GROUP BY T1.Name HAVING count(*) > 1", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4265", "db_id": "club_1", "question": "How many people have membership in the club \"Pen and Paper Gaming\"?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Pen and Paper Gaming\"", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Pen and Paper Gaming'", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Club AS T2 ON T1.ClubID = T2.ClubID WHERE T2.ClubName = 'Pen and Paper Gaming'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4298", "db_id": "club_1", "question": "How many different roles are there in the club \"Bootup Baltimore\"?", "gold_sql": "SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT count(DISTINCT T2.Position) FROM Member_of_club AS T2 JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "predicted_sql": "SELECT count(DISTINCT T2.Position) FROM Member_of_club AS T2 JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4496", "db_id": "decoration_competition", "question": "Show the names of members that have a rank in round higher than 3.", "gold_sql": "SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3", "raw_output": "SELECT T1.Name FROM member AS T1 INNER JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3", "predicted_sql": "SELECT T1.Name FROM member AS T1 INNER JOIN round AS T2 ON T1.Member_ID = T2.Member_ID WHERE T2.Rank_in_Round > 3", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4319", "db_id": "club_1", "question": "Compute the average age of the members in the club \"Tennis Club\".", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "raw_output": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Tennis Club'", "predicted_sql": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Tennis Club'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2805", "db_id": "news_report", "question": "Show the names of journalists from \"England\" or \"Wales\".", "gold_sql": "SELECT Name FROM journalist WHERE Nationality = \"England\" OR Nationality = \"Wales\"", "raw_output": "SELECT T1.Name FROM journalist AS T1 WHERE T1.Nationality = 'England' OR T1.Nationality = 'Wales'", "predicted_sql": "SELECT T1.Name FROM journalist AS T1 WHERE T1.Nationality = 'England' OR T1.Nationality = 'Wales'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4291", "db_id": "club_1", "question": "Which clubs are located at \"AKW\"? Return the club names.", "gold_sql": "SELECT clubname FROM club WHERE clublocation = \"AKW\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 INNER JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID INNER JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T1.ClubLocation = 'AKW'", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 INNER JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID INNER JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T1.ClubLocation = 'AKW'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4268", "db_id": "club_1", "question": "Find the number of clubs where \"Tracy Kim\" is a member.", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Tracy\" AND t3.lname = \"Kim\"", "raw_output": "SELECT count(DISTINCT T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Kim' AND T1.Fname = 'Tracy';", "predicted_sql": "SELECT count(DISTINCT T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Kim' AND T1.Fname = 'Tracy';", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 75, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4308", "db_id": "club_1", "question": "How many clubs does the student named \"Eric Tai\" belong to?", "gold_sql": "SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Eric\" AND t3.lname = \"Tai\"", "raw_output": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Tai' AND T1.Fname = 'Eric'", "predicted_sql": "SELECT count(T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Tai' AND T1.Fname = 'Eric'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2808", "db_id": "news_report", "question": "Show the different nationalities and the number of journalists of each nationality.", "gold_sql": "SELECT Nationality , COUNT(*) FROM journalist GROUP BY Nationality", "raw_output": "SELECT Nationality, count(journalist_ID) FROM journalist GROUP BY Nationality", "predicted_sql": "SELECT Nationality, count(journalist_ID) FROM journalist GROUP BY Nationality", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4487", "db_id": "decoration_competition", "question": "Show the names of members whose country is \"United States\" or \"Canada\".", "gold_sql": "SELECT Name FROM member WHERE Country = \"United States\" OR Country = \"Canada\"", "raw_output": "SELECT T1.Name FROM member AS T1 WHERE T1.Country = 'United States' OR T1.Country = 'Canada'", "predicted_sql": "SELECT T1.Name FROM member AS T1 WHERE T1.Country = 'United States' OR T1.Country = 'Canada'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4299", "db_id": "club_1", "question": "Count the number of different positions in the club \"Bootup Baltimore\".", "gold_sql": "SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT count(DISTINCT T2.Position) FROM Member_of_club AS T2 JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "predicted_sql": "SELECT count(DISTINCT T2.Position) FROM Member_of_club AS T2 JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "generation_status": "ok", "prompt_tokens": 262, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4258", "db_id": "club_1", "question": "Find the last names of the members of the club \"Bootup Baltimore\".", "gold_sql": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "predicted_sql": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "generation_status": "ok", "prompt_tokens": 263, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4316", "db_id": "club_1", "question": "Find the average age of members of the club \"Hopkins Student Enterprises\".", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "predicted_sql": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "generation_status": "ok", "prompt_tokens": 263, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2812", "db_id": "news_report", "question": "Show the names of journalists and the dates of the events they reported.", "gold_sql": "SELECT T3.Name , T2.Date FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID", "raw_output": "SELECT T1.Name, T2.Date FROM journalist AS T1 JOIN news_report AS T3 ON T1.journalist_ID = T3.journalist_ID JOIN event AS T2 ON T3.Event_ID = T2.Event_ID", "predicted_sql": "SELECT T1.Name, T2.Date FROM journalist AS T1 JOIN news_report AS T3 ON T1.journalist_ID = T3.journalist_ID JOIN event AS T2 ON T3.Event_ID = T2.Event_ID", "generation_status": "ok", "prompt_tokens": 263, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4315", "db_id": "club_1", "question": "Find the average age of the members in the club \"Bootup Baltimore\".", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "predicted_sql": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "generation_status": "ok", "prompt_tokens": 263, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4313", "db_id": "club_1", "question": "Which clubs have one or more members whose advisor is \"1121\"?", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Advisor = '1121' GROUP BY T1.ClubName", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Advisor = '1121' GROUP BY T1.ClubName", "generation_status": "ok", "prompt_tokens": 264, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4300", "db_id": "club_1", "question": "How many members of \"Bootup Baltimore\" are older than 18?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age > 18", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 INNER JOIN Student AS T2 ON T1.StuID = T2.StuID INNER JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age > 18", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 INNER JOIN Student AS T2 ON T1.StuID = T2.StuID INNER JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age > 18", "generation_status": "ok", "prompt_tokens": 264, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4314", "db_id": "club_1", "question": "What is the average age of the members of the club \"Bootup Baltimore\"?", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "predicted_sql": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "generation_status": "ok", "prompt_tokens": 264, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6352", "db_id": "school_bus", "question": "Show all different home cities.", "gold_sql": "SELECT DISTINCT home_city FROM driver", "raw_output": "SELECT DISTINCT Home_city FROM driver", "predicted_sql": "SELECT DISTINCT Home_city FROM driver", "generation_status": "ok", "prompt_tokens": 264, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6348", "db_id": "school_bus", "question": "How many drivers are there?", "gold_sql": "SELECT count(*) FROM driver", "raw_output": "SELECT count(*) FROM driver", "predicted_sql": "SELECT count(*) FROM driver", "generation_status": "ok", "prompt_tokens": 264, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2807", "db_id": "news_report", "question": "What is the nationality of the journalist with the largest number of years working?", "gold_sql": "SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1", "raw_output": "SELECT T1.Nationality FROM journalist AS T1 ORDER BY T1.Years_working DESC LIMIT 1", "predicted_sql": "SELECT T1.Nationality FROM journalist AS T1 ORDER BY T1.Years_working DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 264, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4317", "db_id": "club_1", "question": "On average, how old are the members in the club \"Hopkins Student Enterprises\"?", "gold_sql": "SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "predicted_sql": "SELECT AVG(T1.Age) FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4311", "db_id": "club_1", "question": "What are the names of the clubs that have \"Davis Steven\" as a member?", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Davis\" AND t3.lname = \"Steven\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.LName = 'Davis' AND T3.Fname = 'Steven'", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.LName = 'Davis' AND T3.Fname = 'Steven'", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 70, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4277", "db_id": "club_1", "question": "Find the club which has the largest number of members majoring in \"600\".", "gold_sql": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = \"600\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Major = 600 GROUP BY T1.ClubName ORDER BY COUNT(T2.StuID) DESC LIMIT 1", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Major = 600 GROUP BY T1.ClubName ORDER BY COUNT(T2.StuID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2813", "db_id": "news_report", "question": "Show the names of journalists and the names of the events they reported in ascending order", "gold_sql": "SELECT T3.Name , T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance ASC", "raw_output": "SELECT T1.Name, T3.Name FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID JOIN event AS T3 ON T2.Event_ID ORDER BY T1.Name;", "predicted_sql": "SELECT T1.Name, T3.Name FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID JOIN event AS T3 ON T2.Event_ID ORDER BY T1.Name;", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:4261", "db_id": "club_1", "question": "Return the last name for the members of the club named \"Hopkins Student Enterprises\".", "gold_sql": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "predicted_sql": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4302", "db_id": "club_1", "question": "How many members of club \"Bootup Baltimore\" are younger than 18?", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age < 18", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age < 18", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age < 18", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4312", "db_id": "club_1", "question": "List the clubs that have at least a member with advisor \"1121\".", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121", "raw_output": "SELECT DISTINCT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3 WHERE T3.Advisor = 1121", "predicted_sql": "SELECT DISTINCT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3 WHERE T3.Advisor = 1121", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2818", "db_id": "news_report", "question": "Find the average age and experience working length of journalists working on different role type.", "gold_sql": "SELECT avg(t1.age) , avg(Years_working) , t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type", "raw_output": "SELECT Work_Type, AVG(Age), AVG(Years_working) FROM journalist GROUP BY Work_Type", "predicted_sql": "SELECT Work_Type, AVG(Age), AVG(Years_working) FROM journalist GROUP BY Work_Type", "generation_status": "ok", "prompt_tokens": 265, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: Work_Type", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4294", "db_id": "club_1", "question": "What are the first and last name of the president of the club \"Bootup Baltimore\"?", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Position = 'President'", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Position = 'President'", "generation_status": "ok", "prompt_tokens": 266, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4309", "db_id": "club_1", "question": "Count the number of clubs for which the student named \"Eric Tai\" is a member.", "gold_sql": "SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Eric\" AND t3.lname = \"Tai\"", "raw_output": "SELECT count(DISTINCT T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Tai' AND T1.Fname = 'Eric'", "predicted_sql": "SELECT count(DISTINCT T2.ClubID) FROM Student AS T1 JOIN Member_of_club AS T3 ON T1.StuID = T3.StuID JOIN Club AS T2 ON T3.ClubID = T2.ClubID WHERE T1.LName = 'Tai' AND T1.Fname = 'Eric'", "generation_status": "ok", "prompt_tokens": 266, "generated_tokens": 75, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2811", "db_id": "news_report", "question": "Show the dates, places, and names of events in descending order of the attendance.", "gold_sql": "SELECT Date , Name , venue FROM event ORDER BY Event_Attendance DESC", "raw_output": "SELECT Date, Venue, Name FROM event ORDER BY Event_Attendance DESC", "predicted_sql": "SELECT Date, Venue, Name FROM event ORDER BY Event_Attendance DESC", "generation_status": "ok", "prompt_tokens": 266, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2819", "db_id": "news_report", "question": "List the event venues and names that have the top 2 most number of people attended.", "gold_sql": "SELECT venue , name FROM event ORDER BY Event_Attendance DESC LIMIT 2", "raw_output": "SELECT Venue, Name FROM event ORDER BY Event_Attendance DESC LIMIT 2", "predicted_sql": "SELECT Venue, Name FROM event ORDER BY Event_Attendance DESC LIMIT 2", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4279", "db_id": "club_1", "question": "Which club has the most female students as their members? Give me the name of the club.", "gold_sql": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Sex = 'F' GROUP BY T1.ClubName ORDER BY COUNT(T2.StuID) DESC LIMIT 1", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.Sex = 'F' GROUP BY T1.ClubName ORDER BY COUNT(T2.StuID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 80, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4493", "db_id": "decoration_competition", "question": "Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names.", "gold_sql": "SELECT T2.Name , T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name ASC", "raw_output": "SELECT T1.Name, T2.College_Location FROM member AS T1 INNER JOIN college AS T2 ON T1.College_ID = T2.College_ID ORDER BY T1.Name;", "predicted_sql": "SELECT T1.Name, T2.College_Location FROM member AS T1 INNER JOIN college AS T2 ON T1.College_ID = T2.College_ID ORDER BY T1.Name;", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2861", "db_id": "icfp_1", "question": "Count the number of institutions.", "gold_sql": "SELECT count(*) FROM inst", "raw_output": "SELECT count(*) FROM Inst", "predicted_sql": "SELECT count(*) FROM Inst", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2860", "db_id": "icfp_1", "question": "How many institutions are there?", "gold_sql": "SELECT count(*) FROM inst", "raw_output": "SELECT count(*) FROM Inst", "predicted_sql": "SELECT count(*) FROM Inst", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2859", "db_id": "icfp_1", "question": "Count the number of authors.", "gold_sql": "SELECT count(*) FROM authors", "raw_output": "SELECT count(*) FROM Authors", "predicted_sql": "SELECT count(*) FROM Authors", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2858", "db_id": "icfp_1", "question": "How many authors are there?", "gold_sql": "SELECT count(*) FROM authors", "raw_output": "SELECT count(*) FROM Authors", "predicted_sql": "SELECT count(*) FROM Authors", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4259", "db_id": "club_1", "question": "Who are the members of the club named \"Bootup Baltimore\"? Give me their last names.", "gold_sql": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "raw_output": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "predicted_sql": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore'", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4260", "db_id": "club_1", "question": "Who are the members of the club named \"Hopkins Student Enterprises\"? Show the last name.", "gold_sql": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "raw_output": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "predicted_sql": "SELECT T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises'", "generation_status": "ok", "prompt_tokens": 267, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4273", "db_id": "club_1", "question": "What are the first name and last name of each male member in club \"Hopkins Student Enterprises\"?", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t3.sex = \"M\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Hopkins Student Enterprises') AND T1.Sex = 'M'", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Hopkins Student Enterprises') AND T1.Sex = 'M'", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 88, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6358", "db_id": "school_bus", "question": "Show the types of schools that have two schools.", "gold_sql": "SELECT TYPE FROM school GROUP BY TYPE HAVING count(*) = 2", "raw_output": "SELECT T1.Type FROM school AS T1 JOIN school_bus AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.Type HAVING count(*) = 2", "predicted_sql": "SELECT T1.Type FROM school AS T1 JOIN school_bus AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.Type HAVING count(*) = 2", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4295", "db_id": "club_1", "question": "Who is the president of the club \"Bootup Baltimore\"? Give me the first and last name.", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Position = 'President'", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Position = 'President'", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2863", "db_id": "icfp_1", "question": "Count the number of total papers.", "gold_sql": "SELECT count(*) FROM papers", "raw_output": "SELECT count(*) FROM Papers", "predicted_sql": "SELECT count(*) FROM Papers", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4301", "db_id": "club_1", "question": "Count the number of members in club \"Bootup Baltimore\" whose age is above 18.", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age > 18", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age > 18", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age > 18", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4270", "db_id": "club_1", "question": "Find all the female members of club \"Bootup Baltimore\". Show the first name and last name.", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.sex = \"F\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Bootup Baltimore') AND T1.Sex = 'F';", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Bootup Baltimore') AND T1.Sex = 'F';", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 87, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4303", "db_id": "club_1", "question": "Count the number of members in club \"Bootup Baltimore\" whose age is below 18.", "gold_sql": "SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age < 18", "raw_output": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age < 18", "predicted_sql": "SELECT count(T1.StuID) FROM Member_of_club AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T1.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T2.Age < 18", "generation_status": "ok", "prompt_tokens": 268, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4272", "db_id": "club_1", "question": "Find all the male members of club \"Hopkins Student Enterprises\". Show the first name and last name.", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t3.sex = \"M\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Hopkins Student Enterprises') AND T1.Sex = 'M'", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Hopkins Student Enterprises') AND T1.Sex = 'M'", "generation_status": "ok", "prompt_tokens": 269, "generated_tokens": 88, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2862", "db_id": "icfp_1", "question": "How many papers are published in total?", "gold_sql": "SELECT count(*) FROM papers", "raw_output": "SELECT count(*) FROM Papers", "predicted_sql": "SELECT count(*) FROM Papers", "generation_status": "ok", "prompt_tokens": 269, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6353", "db_id": "school_bus", "question": "Show the home city with the most number of drivers.", "gold_sql": "SELECT home_city FROM driver GROUP BY home_city ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Home_city FROM driver GROUP BY Home_city ORDER BY COUNT(Driver_ID) DESC LIMIT 1", "predicted_sql": "SELECT Home_city FROM driver GROUP BY Home_city ORDER BY COUNT(Driver_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 269, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6357", "db_id": "school_bus", "question": "Show the names of the drivers without a school bus.", "gold_sql": "SELECT name FROM driver WHERE driver_id NOT IN (SELECT driver_id FROM school_bus)", "raw_output": "SELECT T1.Name FROM driver AS T1 LEFT JOIN school_bus AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE T2.Driver_ID IS NULL", "predicted_sql": "SELECT T1.Name FROM driver AS T1 LEFT JOIN school_bus AS T2 ON T1.Driver_ID = T2.Driver_ID WHERE T2.Driver_ID IS NULL", "generation_status": "ok", "prompt_tokens": 269, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6351", "db_id": "school_bus", "question": "Show the name of drivers in descending order of age.", "gold_sql": "SELECT name FROM driver ORDER BY age DESC", "raw_output": "SELECT Name FROM driver ORDER BY Age DESC", "predicted_sql": "SELECT Name FROM driver ORDER BY Age DESC", "generation_status": "ok", "prompt_tokens": 269, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:4271", "db_id": "club_1", "question": "Give me the first name and last name for all the female members of the club \"Bootup Baltimore\".", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.sex = \"F\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Bootup Baltimore') AND T1.Sex = 'F';", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T2.ClubID = (SELECT ClubID FROM Club WHERE ClubName = 'Bootup Baltimore') AND T1.Sex = 'F';", "generation_status": "ok", "prompt_tokens": 269, "generated_tokens": 87, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4304", "db_id": "club_1", "question": "Find the names of all the clubs that have at least a member from the city with city code \"BAL\".", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"BAL\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'BAL' GROUP BY T1.ClubName", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'BAL' GROUP BY T1.ClubName", "generation_status": "ok", "prompt_tokens": 270, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4297", "db_id": "club_1", "question": "Find the first name and last name for the \"CTO\" of the club \"Hopkins Student Enterprises\"?", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t2.position = \"CTO\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises' AND T2.Position = 'CTO'", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises' AND T2.Position = 'CTO'", "generation_status": "ok", "prompt_tokens": 270, "generated_tokens": 79, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4306", "db_id": "club_1", "question": "Find the names of the clubs that have at least a member from the city with city code \"HOU\".", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"HOU\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'HOU' GROUP BY T1.ClubName", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'HOU' GROUP BY T1.ClubName", "generation_status": "ok", "prompt_tokens": 270, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6350", "db_id": "school_bus", "question": "Show the party and the number of drivers in each party.", "gold_sql": "SELECT party , count(*) FROM driver GROUP BY party", "raw_output": "SELECT Party, count(Driver_ID) FROM driver GROUP BY Party", "predicted_sql": "SELECT Party, count(Driver_ID) FROM driver GROUP BY Party", "generation_status": "ok", "prompt_tokens": 270, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6359", "db_id": "school_bus", "question": "Show the school name and driver name for all school buses.", "gold_sql": "SELECT T2.school , T3.name FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN driver AS T3 ON T1.driver_id = T3.driver_id", "raw_output": "SELECT T2.School, T1.Name FROM school_bus AS T3 JOIN school AS T1 ON T3.School_ID = T1.School_ID JOIN driver AS T2 ON T3.Driver_ID = T2.Driver_ID", "predicted_sql": "SELECT T2.School, T1.Name FROM school_bus AS T3 JOIN school AS T1 ON T3.School_ID = T1.School_ID JOIN driver AS T2 ON T3.Driver_ID = T2.Driver_ID", "generation_status": "ok", "prompt_tokens": 270, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.School", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4305", "db_id": "club_1", "question": "Which clubs have one or more members from the city with code \"BAL\"? Give me the names of the clubs.", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"BAL\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'BAL' GROUP BY T1.ClubName", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'BAL' GROUP BY T1.ClubName", "generation_status": "ok", "prompt_tokens": 271, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4296", "db_id": "club_1", "question": "Who is the \"CTO\" of club \"Hopkins Student Enterprises\"? Show the first name and last name.", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t2.position = \"CTO\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises' AND T2.Position = 'CTO'", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Hopkins Student Enterprises' AND T2.Position = 'CTO'", "generation_status": "ok", "prompt_tokens": 271, "generated_tokens": 79, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6349", "db_id": "school_bus", "question": "Show the name, home city, and age for all drivers.", "gold_sql": "SELECT name , home_city , age FROM driver", "raw_output": "SELECT Name, Home_city, Age FROM driver", "predicted_sql": "SELECT Name, Home_city, Age FROM driver", "generation_status": "ok", "prompt_tokens": 271, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6361", "db_id": "school_bus", "question": "Show the school name and type for schools without a school bus.", "gold_sql": "SELECT school , TYPE FROM school WHERE school_id NOT IN (SELECT school_id FROM school_bus)", "raw_output": "SELECT T1.School, T1.Type FROM school AS T1 LEFT JOIN school_bus AS T2 ON T1.School_ID = T2.School_ID WHERE T2.Driver_ID IS NULL", "predicted_sql": "SELECT T1.School, T1.Type FROM school AS T1 LEFT JOIN school_bus AS T2 ON T1.School_ID = T2.School_ID WHERE T2.Driver_ID IS NULL", "generation_status": "ok", "prompt_tokens": 271, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2900", "db_id": "icfp_1", "question": "Retrieve the country that has published the most papers.", "gold_sql": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.country FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.country ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.country FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.country ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 271, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3389", "db_id": "manufacturer", "question": "How many furniture components are there in total?", "gold_sql": "SELECT sum(num_of_component) FROM furniture", "raw_output": "SELECT SUM(T1.Num_of_Component) FROM furniture;", "predicted_sql": "SELECT SUM(T1.Num_of_Component) FROM furniture;", "generation_status": "ok", "prompt_tokens": 271, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.Num_of_Component", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6362", "db_id": "school_bus", "question": "Show the type of school and the number of buses for each type.", "gold_sql": "SELECT T2.type , count(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type", "raw_output": "SELECT T1.Type, COUNT(T2.School_ID) FROM school AS T1 JOIN school_bus AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.Type", "predicted_sql": "SELECT T1.Type, COUNT(T2.School_ID) FROM school AS T1 JOIN school_bus AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.Type", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4275", "db_id": "club_1", "question": "Which members of \"Bootup Baltimore\" major in \"600\"? Give me their first names and last names.", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.major = \"600\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T1.Major = 600", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T1.Major = 600", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2901", "db_id": "icfp_1", "question": "Find the country that the most papers are affiliated with.", "gold_sql": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.country FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.country ORDER BY COUNT(T2.paperID) DESC LIMIT 1", "predicted_sql": "SELECT T1.country FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.country ORDER BY COUNT(T2.paperID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2920", "db_id": "icfp_1", "question": "Retrieve all the last names of authors in alphabetical order.", "gold_sql": "SELECT lname FROM authors ORDER BY lname", "raw_output": "SELECT T1.lname FROM Authors AS T1 ORDER BY T1.lname;", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 ORDER BY T1.lname;", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6364", "db_id": "school_bus", "question": "List names for drivers from Hartford city and younger than 40.", "gold_sql": "SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40", "raw_output": "SELECT T1.Name FROM driver AS T1 WHERE T1.Home_city = 'Hartford' AND T1.Age < 40", "predicted_sql": "SELECT T1.Name FROM driver AS T1 WHERE T1.Home_city = 'Hartford' AND T1.Age < 40", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2906", "db_id": "icfp_1", "question": "Which paper's title contains the word \"Database\"?", "gold_sql": "SELECT title FROM papers WHERE title LIKE \"%Database%\"", "raw_output": "SELECT title FROM Papers WHERE title LIKE '%Database%';", "predicted_sql": "SELECT title FROM Papers WHERE title LIKE '%Database%';", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:4307", "db_id": "club_1", "question": "Which clubs have one or more members from the city with code \"HOU\"? Give me the names of the clubs.", "gold_sql": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"HOU\"", "raw_output": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'HOU' GROUP BY T1.ClubName", "predicted_sql": "SELECT T1.ClubName FROM Club AS T1 JOIN Member_of_club AS T2 ON T1.ClubID = T2.ClubID JOIN Student AS T3 ON T2.StuID = T3.StuID WHERE T3.city_code = 'HOU' GROUP BY T1.ClubName", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6363", "db_id": "school_bus", "question": "How many drivers are from Hartford city or younger than 40?", "gold_sql": "SELECT count(*) FROM driver WHERE home_city = 'Hartford' OR age < 40", "raw_output": "SELECT count(*) FROM driver WHERE Home_city = 'Hartford' OR Age < 40", "predicted_sql": "SELECT count(*) FROM driver WHERE Home_city = 'Hartford' OR Age < 40", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2866", "db_id": "icfp_1", "question": "Find all the papers published by \"Aaron Turon\".", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Aaron\" AND t1.lname = \"Turon\"", "raw_output": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Turon';", "predicted_sql": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Turon';", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2884", "db_id": "icfp_1", "question": "Find all the papers published by the institution \"Google\".", "gold_sql": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "raw_output": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Inst AS T3 ON T2.instID = T3.instID WHERE T3.name = 'Google'", "predicted_sql": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Inst AS T3 ON T2.instID = T3.instID WHERE T3.name = 'Google'", "generation_status": "ok", "prompt_tokens": 272, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2892", "db_id": "icfp_1", "question": "Which papers have \"Stephanie Weirich\" as an author?", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Stephanie\" AND t1.lname = \"Weirich\"", "raw_output": "SELECT T1.paperID FROM Authorship AS T1 INNER JOIN Authors AS T2 ON T1.authID = T2.authID WHERE T2.fname = 'Stephanie'", "predicted_sql": "SELECT T1.paperID FROM Authorship AS T1 INNER JOIN Authors AS T2 ON T1.authID = T2.authID WHERE T2.fname = 'Stephanie'", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2885", "db_id": "icfp_1", "question": "Which papers were written by authors from the institution \"Google\"?", "gold_sql": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "raw_output": "SELECT T1.paperID FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Google'", "predicted_sql": "SELECT T1.paperID FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Google'", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2882", "db_id": "icfp_1", "question": "What are the papers published under the institution \"Indiana University\"?", "gold_sql": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Indiana University\"", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Indiana University'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Indiana University'", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:4274", "db_id": "club_1", "question": "Find all members of \"Bootup Baltimore\" whose major is \"600\". Show the first name and last name.", "gold_sql": "SELECT t3.fname , t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.major = \"600\"", "raw_output": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T1.Major = 600", "predicted_sql": "SELECT T1.Fname, T1.LName FROM Student AS T1 JOIN Member_of_club AS T2 ON T1.StuID = T2.StuID JOIN Club AS T3 ON T2.ClubID = T3.ClubID WHERE T3.ClubName = 'Bootup Baltimore' AND T1.Major = 600", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2919", "db_id": "icfp_1", "question": "Sort the first names of all the authors in alphabetical order.", "gold_sql": "SELECT fname FROM authors ORDER BY fname", "raw_output": "SELECT T1.fname FROM Authors AS T1 ORDER BY T1.fname;", "predicted_sql": "SELECT T1.fname FROM Authors AS T1 ORDER BY T1.fname;", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6354", "db_id": "school_bus", "question": "Show the party with drivers from Hartford and drivers older than 40.", "gold_sql": "SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40", "raw_output": "SELECT T1.Party FROM driver AS T1 WHERE T1.Home_city = 'Hartford' AND T1.Age > 40", "predicted_sql": "SELECT T1.Party FROM driver AS T1 WHERE T1.Home_city = 'Hartford' AND T1.Age > 40", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2864", "db_id": "icfp_1", "question": "What are the titles of papers published by \"Jeremy Gibbons\"?", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Jeremy\" AND t1.lname = \"Gibbons\"", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Jeremy'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Jeremy'", "generation_status": "ok", "prompt_tokens": 273, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2904", "db_id": "icfp_1", "question": "Find the titles of the papers that contain the word \"ML\".", "gold_sql": "SELECT title FROM papers WHERE title LIKE \"%ML%\"", "raw_output": "SELECT T1.title FROM Papers AS T1 WHERE T1.title LIKE '%ML%';", "predicted_sql": "SELECT T1.title FROM Papers AS T1 WHERE T1.title LIKE '%ML%';", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6355", "db_id": "school_bus", "question": "Show home city where at least two drivers older than 40 are from.", "gold_sql": "SELECT home_city FROM driver WHERE age > 40 GROUP BY home_city HAVING count(*) >= 2", "raw_output": "SELECT Home_city FROM driver WHERE Age > 40 GROUP BY Home_city HAVING count(*) >= 2", "predicted_sql": "SELECT Home_city FROM driver WHERE Age > 40 GROUP BY Home_city HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3393", "db_id": "manufacturer", "question": "Find the name and component amount of the least popular furniture.", "gold_sql": "SELECT name , Num_of_Component FROM furniture ORDER BY market_rate LIMIT 1", "raw_output": "SELECT T1.Name, T1.Num_of_Component FROM furniture AS T1 ORDER BY T1.Num_of_Component ASC LIMIT 1", "predicted_sql": "SELECT T1.Name, T1.Num_of_Component FROM furniture AS T1 ORDER BY T1.Num_of_Component ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3397", "db_id": "manufacturer", "question": "List all manufacturer names and ids ordered by their opening year.", "gold_sql": "SELECT name , manufacturer_id FROM manufacturer ORDER BY open_year", "raw_output": "SELECT Name, Manufacturer_ID FROM manufacturer ORDER BY Open_Year", "predicted_sql": "SELECT Name, Manufacturer_ID FROM manufacturer ORDER BY Open_Year", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2865", "db_id": "icfp_1", "question": "Find the titles of all the papers written by \"Jeremy Gibbons\"", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Jeremy\" AND t1.lname = \"Gibbons\"", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Jeremy' AND T3.lname = 'Gibbons'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Jeremy' AND T3.lname = 'Gibbons'", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2886", "db_id": "icfp_1", "question": "How many papers are published by the institution \"Tokohu University\"?", "gold_sql": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Tokohu University\"", "raw_output": "SELECT count(T1.paperID) FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Tokohu University'", "predicted_sql": "SELECT count(T1.paperID) FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Tokohu University'", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6360", "db_id": "school_bus", "question": "What is the maximum, minimum and average years spent working on a school bus?", "gold_sql": "SELECT max(years_working) , min(years_working) , avg(years_working) FROM school_bus", "raw_output": "SELECT MAX(Years_Working), MIN(Years_Working), AVG(Years_Working) FROM school_bus", "predicted_sql": "SELECT MAX(Years_Working), MIN(Years_Working), AVG(Years_Working) FROM school_bus", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2913", "db_id": "icfp_1", "question": "Which paper has the most authors? Give me the paper title.", "gold_sql": "SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship)", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID GROUP BY T1.paperID ORDER BY COUNT(T2.authID) DESC LIMIT 1", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID GROUP BY T1.paperID ORDER BY COUNT(T2.authID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2918", "db_id": "icfp_1", "question": "Find the first names of all the authors ordered in alphabetical order.", "gold_sql": "SELECT fname FROM authors ORDER BY fname", "raw_output": "SELECT T1.fname FROM Authors AS T1 ORDER BY T1.lname;", "predicted_sql": "SELECT T1.fname FROM Authors AS T1 ORDER BY T1.lname;", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2872", "db_id": "icfp_1", "question": "Which institution does \"Katsuhiro Ueno\" belong to?", "gold_sql": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Katsuhiro\" AND t1.lname = \"Ueno\"", "raw_output": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Katsuhiro'", "predicted_sql": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Katsuhiro'", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6356", "db_id": "school_bus", "question": "Show all home cities except for those having a driver older than 40.", "gold_sql": "SELECT home_city FROM driver EXCEPT SELECT home_city FROM driver WHERE age > 40", "raw_output": "SELECT DISTINCT Home_city FROM driver WHERE Home_city NOT IN (SELECT Home_city FROM driver WHERE Age > 40)", "predicted_sql": "SELECT DISTINCT Home_city FROM driver WHERE Home_city NOT IN (SELECT Home_city FROM driver WHERE Age > 40)", "generation_status": "ok", "prompt_tokens": 274, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2917", "db_id": "icfp_1", "question": "Which authors have first name \"Amal\"? List their last names.", "gold_sql": "SELECT lname FROM authors WHERE fname = \"Amal\"", "raw_output": "SELECT T1.lname FROM Authors AS T1 WHERE T1.fname = 'Amal'", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 WHERE T1.fname = 'Amal'", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2867", "db_id": "icfp_1", "question": "Find the titles of all the papers written by \"Aaron Turon\".", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Aaron\" AND t1.lname = \"Turon\"", "raw_output": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Aaron' AND T3.lname = 'Turon'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Aaron' AND T3.lname = 'Turon'", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2888", "db_id": "icfp_1", "question": "Find the number of papers published by the institution \"University of Pennsylvania\".", "gold_sql": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Pennsylvania\"", "raw_output": "SELECT count(T3.paperID) FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T1.name = 'University of Pennsylvania'", "predicted_sql": "SELECT count(T3.paperID) FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T1.name = 'University of Pennsylvania'", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2868", "db_id": "icfp_1", "question": "How many papers have \"Atsushi Ohori\" published?", "gold_sql": "SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Atsushi\" AND t1.lname = \"Ohori\"", "raw_output": "SELECT count(T1.paperID) FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Ohori';", "predicted_sql": "SELECT count(T1.paperID) FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Ohori';", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2915", "db_id": "icfp_1", "question": "Which authors have last name \"Ueno\"? List their first names.", "gold_sql": "SELECT fname FROM authors WHERE lname = \"Ueno\"", "raw_output": "SELECT T1.fname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID WHERE T1.lname = 'Ueno'", "predicted_sql": "SELECT T1.fname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID WHERE T1.lname = 'Ueno'", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2903", "db_id": "icfp_1", "question": "Which institution has the most papers? Find the name of the institution.", "gold_sql": "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.name FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.instID HAVING count(*) > (SELECT count(T2_inner.paperID) FROM Authorship AS T2_inner JOIN Inst AS T1_inner ON T2_inner.instID = T1_inner.instID GROUP BY T1_inner.instID)", "predicted_sql": "SELECT T1.name FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.instID HAVING count(*) > (SELECT count(T2_inner.paperID) FROM Authorship AS T2_inner JOIN Inst AS T1_inner ON T2_inner.instID = T1_inner.instID GROUP BY T1_inner.instID)", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 93, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6365", "db_id": "school_bus", "question": "find the name of driver who is driving the school bus with the longest working history.", "gold_sql": "SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id = t2.driver_id ORDER BY years_working DESC LIMIT 1", "raw_output": "SELECT T1.Name FROM driver AS T1 INNER JOIN school_bus AS T2 ON T1.Driver_ID = T2.Driver_ID ORDER BY T2.Years_Working DESC LIMIT 1", "predicted_sql": "SELECT T1.Name FROM driver AS T1 INNER JOIN school_bus AS T2 ON T1.Driver_ID = T2.Driver_ID ORDER BY T2.Years_Working DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2912", "db_id": "icfp_1", "question": "Retrieve the title of the paper that has the largest number of authors.", "gold_sql": "SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT max(authorder) FROM authorship)", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID GROUP BY T1.paperID ORDER BY COUNT(T2.authID) DESC LIMIT 1", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID GROUP BY T1.paperID ORDER BY COUNT(T2.authID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2916", "db_id": "icfp_1", "question": "Find the last name of the author with first name \"Amal\".", "gold_sql": "SELECT lname FROM authors WHERE fname = \"Amal\"", "raw_output": "SELECT T1.lname FROM Authors AS T1 WHERE T1.fname = 'Amal'", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 WHERE T1.fname = 'Amal'", "generation_status": "ok", "prompt_tokens": 275, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2810", "db_id": "news_report", "question": "Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.", "gold_sql": "SELECT Nationality FROM journalist WHERE Years_working > 10 INTERSECT SELECT Nationality FROM journalist WHERE Years_working < 3", "raw_output": "SELECT T1.Nationality FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID JOIN journalist AS T3 ON T2.journalist_ID = T3.journalist_ID WHERE T1.Years_working > 10 AND T3.Years_working < 3 GROUP BY T1.Nationality", "predicted_sql": "SELECT T1.Nationality FROM journalist AS T1 JOIN news_report AS T2 ON T1.journalist_ID = T2.journalist_ID JOIN journalist AS T3 ON T2.journalist_ID = T3.journalist_ID WHERE T1.Years_working > 10 AND T3.Years_working < 3 GROUP BY T1.Nationality", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2898", "db_id": "icfp_1", "question": "What is the last name of the author that has published the most papers?", "gold_sql": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID GROUP BY T1.authID ORDER BY COUNT(T2.paperID) DESC LIMIT 1", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID GROUP BY T1.authID ORDER BY COUNT(T2.paperID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2914", "db_id": "icfp_1", "question": "What is the first name of the author with last name \"Ueno\"?", "gold_sql": "SELECT fname FROM authors WHERE lname = \"Ueno\"", "raw_output": "SELECT T2.fname FROM Authors AS T2 INNER JOIN Authorship AS T3 ON T2.authID = T3.authID WHERE T2.lname = 'Ueno'", "predicted_sql": "SELECT T2.fname FROM Authors AS T2 INNER JOIN Authorship AS T3 ON T2.authID = T3.authID WHERE T2.lname = 'Ueno'", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2921", "db_id": "icfp_1", "question": "Give me a list of all the last names of authors sorted in alphabetical order", "gold_sql": "SELECT lname FROM authors ORDER BY lname", "raw_output": "SELECT T1.lname FROM Authors AS T1 ORDER BY T1.lname;", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 ORDER BY T1.lname;", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3390", "db_id": "manufacturer", "question": "Return the name and id of the furniture with the highest market rate.", "gold_sql": "SELECT name , furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1", "raw_output": "SELECT T1.Name, T1.Furniture_ID FROM furniture AS T1 ORDER BY T1.Market_Rate DESC LIMIT 1", "predicted_sql": "SELECT T1.Name, T1.Furniture_ID FROM furniture AS T1 ORDER BY T1.Market_Rate DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2890", "db_id": "icfp_1", "question": "Find the papers which have \"Olin Shivers\" as an author.", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Olin\" AND t1.lname = \"Shivers\"", "raw_output": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Shivers';", "predicted_sql": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Shivers';", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2902", "db_id": "icfp_1", "question": "Find the name of the organization that has published the largest number of papers.", "gold_sql": "SELECT t1.name FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.name FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.name ORDER BY count(T2.paperID) DESC LIMIT 1", "predicted_sql": "SELECT T1.name FROM Inst AS T1 JOIN Authorship AS T2 ON T1.instID = T2.instID GROUP BY T1.name ORDER BY count(T2.paperID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2899", "db_id": "icfp_1", "question": "Which author has written the most papers? Find his or her last name.", "gold_sql": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname , t1.lname ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID GROUP BY T1.authID ORDER BY COUNT(T2.paperID) DESC LIMIT 1", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID GROUP BY T1.authID ORDER BY COUNT(T2.paperID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2893", "db_id": "icfp_1", "question": "Find the titles of the papers the author \"Stephanie Weirich\" wrote.", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Stephanie\" AND t1.lname = \"Weirich\"", "raw_output": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Stephanie' AND T3.lname = 'Weirich'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Stephanie' AND T3.lname = 'Weirich'", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2889", "db_id": "icfp_1", "question": "How many papers are written by authors from the institution \"University of Pennsylvania\"?", "gold_sql": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Pennsylvania\"", "raw_output": "SELECT count(T1.paperID) FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'University of Pennsylvania'", "predicted_sql": "SELECT count(T1.paperID) FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'University of Pennsylvania'", "generation_status": "ok", "prompt_tokens": 276, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3394", "db_id": "manufacturer", "question": "Find the names of furnitures whose prices are lower than the highest price.", "gold_sql": "SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT max(Price_in_Dollar) FROM furniture_manufacte)", "raw_output": "SELECT T1.Name FROM furniture AS T1 INNER JOIN furniture_manufacte AS T2 ON T1.Furniture_ID = T2.Furniture_ID ORDER BY T2.Price_in_Dollar DESC LIMIT 1 OFFSET 1", "predicted_sql": "SELECT T1.Name FROM furniture AS T1 INNER JOIN furniture_manufacte AS T2 ON T1.Furniture_ID = T2.Furniture_ID ORDER BY T2.Price_in_Dollar DESC LIMIT 1 OFFSET 1", "generation_status": "ok", "prompt_tokens": 277, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2870", "db_id": "icfp_1", "question": "What is the name of the institution that \"Matthias Blume\" belongs to?", "gold_sql": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Matthias\" AND t1.lname = \"Blume\"", "raw_output": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Matthias'", "predicted_sql": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Matthias'", "generation_status": "ok", "prompt_tokens": 277, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3402", "db_id": "manufacturer", "question": "Give me the names and prices of furnitures which some companies are manufacturing.", "gold_sql": "SELECT t1.name , t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID", "raw_output": "SELECT T1.Name, T2.Price_in_Dollar FROM furniture AS T1 JOIN furniture_manufacte AS T3 ON T1.Furniture_ID = T3.Furniture_ID JOIN manufacturer AS T4 ON T3.Manufacturer_ID = T4.Manufacturer_ID", "predicted_sql": "SELECT T1.Name, T2.Price_in_Dollar FROM furniture AS T1 JOIN furniture_manufacte AS T3 ON T1.Furniture_ID = T3.Furniture_ID JOIN manufacturer AS T4 ON T3.Manufacturer_ID = T4.Manufacturer_ID", "generation_status": "ok", "prompt_tokens": 277, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Price_in_Dollar", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2869", "db_id": "icfp_1", "question": "How many papers are \"Atsushi Ohori\" the author of?", "gold_sql": "SELECT count(*) FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Atsushi\" AND t1.lname = \"Ohori\"", "raw_output": "SELECT count(T1.paperID) FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Ohori';", "predicted_sql": "SELECT count(T1.paperID) FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Ohori';", "generation_status": "ok", "prompt_tokens": 277, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2887", "db_id": "icfp_1", "question": "Find the number of papers published by authors from the institution \"Tokohu University\".", "gold_sql": "SELECT count(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Tokohu University\"", "raw_output": "SELECT count(T1.paperID) FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Tokohu University'", "predicted_sql": "SELECT count(T1.paperID) FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Tokohu University'", "generation_status": "ok", "prompt_tokens": 277, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2883", "db_id": "icfp_1", "question": "List the titles of the papers whose authors are from the institution \"Indiana University\".", "gold_sql": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Indiana University\"", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Indiana University'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Indiana University'", "generation_status": "ok", "prompt_tokens": 277, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2877", "db_id": "icfp_1", "question": "Find the first names and last names of the authors whose institution affiliation is \"Google\".", "gold_sql": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Google'", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Google'", "generation_status": "ok", "prompt_tokens": 278, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2922", "db_id": "icfp_1", "question": "Retrieve all the first and last names of authors in the alphabetical order of last names.", "gold_sql": "SELECT fname , lname FROM authors ORDER BY lname", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 ORDER BY T1.lname;", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 ORDER BY T1.lname;", "generation_status": "ok", "prompt_tokens": 278, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2876", "db_id": "icfp_1", "question": "Which authors belong to the institution \"Google\"? Show the first names and last names.", "gold_sql": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Google'", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'Google'", "generation_status": "ok", "prompt_tokens": 278, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3395", "db_id": "manufacturer", "question": "Which manufacturer has the most number of shops? List its name and year of opening.", "gold_sql": "SELECT open_year , name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1", "raw_output": "SELECT T1.Name, T1.Open_Year FROM manufacturer AS T1 ORDER BY T1.Num_of_Shops DESC LIMIT 1", "predicted_sql": "SELECT T1.Name, T1.Open_Year FROM manufacturer AS T1 ORDER BY T1.Num_of_Shops DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 279, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3400", "db_id": "manufacturer", "question": "Find the id and number of shops for the company that produces the most expensive furniture.", "gold_sql": "SELECT t1.manufacturer_id , t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1", "raw_output": "SELECT T1.Manufacturer_ID, T1.Num_of_Shops FROM manufacturer AS T1 JOIN furniture_manufacte AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID JOIN furniture AS T3 ON T2.Furniture_ID = T3.Furniture_ID ORDER BY T3.Market_Rate DESC LIMIT 1", "predicted_sql": "SELECT T1.Manufacturer_ID, T1.Num_of_Shops FROM manufacturer AS T1 JOIN furniture_manufacte AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID JOIN furniture AS T3 ON T2.Furniture_ID = T3.Furniture_ID ORDER BY T3.Market_Rate DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 279, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2874", "db_id": "icfp_1", "question": "Who belong to the institution \"University of Oxford\"? Show the first names and last names.", "gold_sql": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Oxford\"", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'University of Oxford'", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'University of Oxford'", "generation_status": "ok", "prompt_tokens": 279, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2878", "db_id": "icfp_1", "question": "What are the last names of the author of the paper titled \"Binders Unbound\"?", "gold_sql": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Binders Unbound\"", "raw_output": "SELECT T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Binders Unbound'", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Binders Unbound'", "generation_status": "ok", "prompt_tokens": 279, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2873", "db_id": "icfp_1", "question": "What is the name of the institution the author \"Katsuhiro Ueno\" belongs to?", "gold_sql": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Katsuhiro\" AND t1.lname = \"Ueno\"", "raw_output": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Katsuhiro'", "predicted_sql": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Katsuhiro'", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2875", "db_id": "icfp_1", "question": "Find the first names and last names of the authors whose institution affiliation is \"University of Oxford\".", "gold_sql": "SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"University of Oxford\"", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'University of Oxford'", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Inst AS T3 ON T2.instID = T3 WHERE T3.name = 'University of Oxford'", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2891", "db_id": "icfp_1", "question": "Which papers did the author \"Olin Shivers\" write? Give me the paper titles.", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Olin\" AND t1.lname = \"Shivers\"", "raw_output": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Shivers'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.lname = 'Shivers'", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3396", "db_id": "manufacturer", "question": "Find the average number of factories for the manufacturers that have more than 20 shops.", "gold_sql": "SELECT avg(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20", "raw_output": "SELECT AVG(T1.Num_of_Factories) FROM manufacturer AS T1 INNER JOIN manufacturer AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID WHERE T2.Num_of_Shops > 20", "predicted_sql": "SELECT AVG(T1.Num_of_Factories) FROM manufacturer AS T1 INNER JOIN manufacturer AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID WHERE T2.Num_of_Shops > 20", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3391", "db_id": "manufacturer", "question": "find the total market rate of the furnitures that have the top 2 market shares.", "gold_sql": "SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2", "raw_output": "SELECT SUM(T1.Market_Rate) FROM furniture AS T1 INNER JOIN furniture_manufacte AS T2 ON T1.Furniture_ID = T2.Furniture_ID WHERE T2.Furniture_ID IN (SELECT Furniture_ID FROM furniture GROUP BY Furniture_ID ORDER BY SUM(T2.Price_in_Dollar) DESC LIMIT 2)", "predicted_sql": "SELECT SUM(T1.Market_Rate) FROM furniture AS T1 INNER JOIN furniture_manufacte AS T2 ON T1.Furniture_ID = T2.Furniture_ID WHERE T2.Furniture_ID IN (SELECT Furniture_ID FROM furniture GROUP BY Furniture_ID ORDER BY SUM(T2.Price_in_Dollar) DESC LIMIT 2)", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "misuse of aggregate: SUM()", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3401", "db_id": "manufacturer", "question": "Find the number of funiture types produced by each manufacturer as well as the company names.", "gold_sql": "SELECT count(*) , t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id", "raw_output": "SELECT T1.Name, COUNT(T2.Furniture_ID) FROM manufacturer AS T1 JOIN furniture_manufacte AS T3 ON T1.Manufacturer_ID = T3.Manufacturer_ID JOIN furniture AS T2 ON T3.Furniture_ID = T2.Furniture_ID GROUP BY T1.Name", "predicted_sql": "SELECT T1.Name, COUNT(T2.Furniture_ID) FROM manufacturer AS T1 JOIN furniture_manufacte AS T3 ON T1.Manufacturer_ID = T3.Manufacturer_ID JOIN furniture AS T2 ON T3.Furniture_ID = T2.Furniture_ID GROUP BY T1.Name", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2907", "db_id": "icfp_1", "question": "Which papers have the substring \"Database\" in their titles? Show the titles of the papers.", "gold_sql": "SELECT title FROM papers WHERE title LIKE \"%Database%\"", "raw_output": "SELECT T1.title FROM Papers AS T1 WHERE T1.title LIKE '%Database%'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 WHERE T1.title LIKE '%Database%'", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2905", "db_id": "icfp_1", "question": "Which papers have the substring \"ML\" in their titles? Return the titles of the papers.", "gold_sql": "SELECT title FROM papers WHERE title LIKE \"%ML%\"", "raw_output": "SELECT T1.title FROM Papers AS T1 WHERE T1.title LIKE '%ML%';", "predicted_sql": "SELECT T1.title FROM Papers AS T1 WHERE T1.title LIKE '%ML%';", "generation_status": "ok", "prompt_tokens": 280, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2879", "db_id": "icfp_1", "question": "Who is the author of the paper titled \"Binders Unbound\"? Give me the last name.", "gold_sql": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Binders Unbound\"", "raw_output": "SELECT T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Binders Unbound'", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Binders Unbound'", "generation_status": "ok", "prompt_tokens": 281, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3403", "db_id": "manufacturer", "question": "Find the market shares and names of furnitures which no any company is producing in our records.", "gold_sql": "SELECT Market_Rate , name FROM furniture WHERE Furniture_ID NOT IN (SELECT Furniture_ID FROM furniture_manufacte)", "raw_output": "SELECT T1.Name, T2.Market_Rate FROM furniture AS T1 JOIN furniture_manufacte AS T3 ON T1.Furniture_ID = T3.Furniture_ID LEFT JOIN manufacturer AS T4 ON T3.Manufacturer_ID = T4.Manufacturer_ID WHERE T3.Manufacturer_ID IS NULL", "predicted_sql": "SELECT T1.Name, T2.Market_Rate FROM furniture AS T1 JOIN furniture_manufacte AS T3 ON T1.Furniture_ID = T3.Furniture_ID LEFT JOIN manufacturer AS T4 ON T3.Manufacturer_ID = T4.Manufacturer_ID WHERE T3.Manufacturer_ID IS NULL", "generation_status": "ok", "prompt_tokens": 281, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Market_Rate", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3392", "db_id": "manufacturer", "question": "Find the component amounts and names of all furnitures that have more than 10 components.", "gold_sql": "SELECT Num_of_Component , name FROM furniture WHERE Num_of_Component > 10", "raw_output": "SELECT T1.Num_of_Component, T1.Name FROM furniture AS T1 WHERE T1.Num_of_Component > 10", "predicted_sql": "SELECT T1.Num_of_Component, T1.Name FROM furniture AS T1 WHERE T1.Num_of_Component > 10", "generation_status": "ok", "prompt_tokens": 281, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2923", "db_id": "icfp_1", "question": "Sort the list of all the first and last names of authors in alphabetical order of the last names.", "gold_sql": "SELECT fname , lname FROM authors ORDER BY lname", "raw_output": "SELECT T1.lname, T1.fname FROM Authors AS T1 ORDER BY T1.lname", "predicted_sql": "SELECT T1.lname, T1.fname FROM Authors AS T1 ORDER BY T1.lname", "generation_status": "ok", "prompt_tokens": 281, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2911", "db_id": "icfp_1", "question": "Which authors have written a paper with title containing the word \"Monadic\"? Return their last names.", "gold_sql": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Monadic%\"", "raw_output": "SELECT T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Monadic%'", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Monadic%'", "generation_status": "ok", "prompt_tokens": 281, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2871", "db_id": "icfp_1", "question": "Which institution is the author \"Matthias Blume\" belong to? Give me the name of the institution.", "gold_sql": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Matthias\" AND t1.lname = \"Blume\"", "raw_output": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Matthias' AND T3.lname = 'Blume'", "predicted_sql": "SELECT T1.name FROM Inst AS T1 INNER JOIN Authorship AS T2 ON T1.instID = T2.instID INNER JOIN Authors AS T3 ON T2.authID = T3.authID WHERE T3.fname = 'Matthias' AND T3.lname = 'Blume'", "generation_status": "ok", "prompt_tokens": 282, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2908", "db_id": "icfp_1", "question": "Find the first names of all the authors who have written a paper with title containing the word \"Functional\".", "gold_sql": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\"", "raw_output": "SELECT T1.fname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Functional'", "predicted_sql": "SELECT T1.fname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Functional'", "generation_status": "ok", "prompt_tokens": 282, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2910", "db_id": "icfp_1", "question": "Find the last names of all the authors that have written a paper with title containing the word \"Monadic\".", "gold_sql": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Monadic%\"", "raw_output": "SELECT T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Monadic%'", "predicted_sql": "SELECT T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Monadic%'", "generation_status": "ok", "prompt_tokens": 283, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2894", "db_id": "icfp_1", "question": "Which paper is published in an institution in \"USA\" and have \"Turon\" as its second author?", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"USA\" AND t2.authorder = 2 AND t1.lname = \"Turon\"", "raw_output": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Inst AS T3 ON T2.instID = T3.instID INNER JOIN Authors AS T4 ON T2.authID = T4.authID WHERE T3.country = 'USA' AND T4.fname = 'Turon' AND T2.authOrder = 2", "predicted_sql": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Inst AS T3 ON T2.instID = T3.instID INNER JOIN Authors AS T4 ON T2.authID = T4.authID WHERE T3.country = 'USA' AND T4.fname = 'Turon' AND T2.authOrder = 2", "generation_status": "ok", "prompt_tokens": 283, "generated_tokens": 94, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2881", "db_id": "icfp_1", "question": "What are the first and last name of the author who published the paper titled \"Nameless, Painless\"?", "gold_sql": "SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Nameless , Painless\"", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Nameless, Painless'", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Nameless, Painless'", "generation_status": "ok", "prompt_tokens": 283, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2880", "db_id": "icfp_1", "question": "Find the first and last name of the author(s) who wrote the paper \"Nameless, Painless\".", "gold_sql": "SELECT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Nameless , Painless\"", "raw_output": "SELECT T1.fname, T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Nameless, Painless'", "predicted_sql": "SELECT T1.fname, T1.lname FROM Authors AS T1 INNER JOIN Authorship AS T2 ON T1.authID = T2.authID INNER JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title = 'Nameless, Painless'", "generation_status": "ok", "prompt_tokens": 284, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3399", "db_id": "manufacturer", "question": "what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.", "gold_sql": "SELECT max(num_of_shops) , avg(Num_of_Factories) FROM manufacturer WHERE open_year < 1990", "raw_output": "SELECT AVG(T1.Num_of_Factories), MAX(T1.Num_of_Shops) FROM manufacturer AS T1 WHERE T1.Open_Year < 1990", "predicted_sql": "SELECT AVG(T1.Num_of_Factories), MAX(T1.Num_of_Shops) FROM manufacturer AS T1 WHERE T1.Open_Year < 1990", "generation_status": "ok", "prompt_tokens": 285, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2895", "db_id": "icfp_1", "question": "Find papers whose second author has last name \"Turon\" and is affiliated with an institution in the country \"USA\".", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"USA\" AND t2.authorder = 2 AND t1.lname = \"Turon\"", "raw_output": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID INNER JOIN Inst AS T4 ON T2.instID = T4.instID WHERE T3.lname = 'Turon' AND T4.country = 'USA' GROUP BY T1.paperID HAVING COUNT(DISTINCT T3.lname) = 2", "predicted_sql": "SELECT T1.paperID FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID INNER JOIN Inst AS T4 ON T2.instID = T4.instID WHERE T3.lname = 'Turon' AND T4.country = 'USA' GROUP BY T1.paperID HAVING COUNT(DISTINCT T3.lname) = 2", "generation_status": "ok", "prompt_tokens": 285, "generated_tokens": 106, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2909", "db_id": "icfp_1", "question": "Who has written a paper that has the word \"Functional\" in its title? Return the first names of the authors.", "gold_sql": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\"", "raw_output": "SELECT T1.fname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Functional%';", "predicted_sql": "SELECT T1.fname FROM Authors AS T1 JOIN Authorship AS T2 ON T1.authID = T2.authID JOIN Papers AS T3 ON T2.paperID = T3.paperID WHERE T3.title LIKE '%Functional%';", "generation_status": "ok", "prompt_tokens": 285, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6580", "db_id": "wine_1", "question": "Which wineries produce at least four wines?", "gold_sql": "SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4", "raw_output": "SELECT Winery FROM wine GROUP BY Winery HAVING count(*) >= 4", "predicted_sql": "SELECT Winery FROM wine GROUP BY Winery HAVING count(*) >= 4", "generation_status": "ok", "prompt_tokens": 286, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6554", "db_id": "wine_1", "question": "How many wines are there for each grape?", "gold_sql": "SELECT count(*) , Grape FROM WINE GROUP BY Grape", "raw_output": "SELECT T1.Grape, count(T2.No) FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.Grape", "predicted_sql": "SELECT T1.Grape, count(T2.No) FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.Grape", "generation_status": "ok", "prompt_tokens": 287, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6525", "db_id": "wine_1", "question": "List the names and scores of all wines.", "gold_sql": "SELECT Name , Score FROM WINE", "raw_output": "SELECT T1.Name, T1.Score FROM wine AS T1", "predicted_sql": "SELECT T1.Name, T1.Score FROM wine AS T1", "generation_status": "ok", "prompt_tokens": 287, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6539", "db_id": "wine_1", "question": "How many appelations are in Napa Country?", "gold_sql": "SELECT count(*) FROM APPELLATIONS WHERE County = \"Napa\"", "raw_output": "SELECT count(*) FROM appellations WHERE County = 'Napa';", "predicted_sql": "SELECT count(*) FROM appellations WHERE County = 'Napa';", "generation_status": "ok", "prompt_tokens": 287, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6540", "db_id": "wine_1", "question": "Count the number of appelations in Napa County.", "gold_sql": "SELECT count(*) FROM APPELLATIONS WHERE County = \"Napa\"", "raw_output": " نحوه:SELECT count(*) FROM appellations WHERE County='Napa';", "predicted_sql": "نحوه:SELECT count(*) FROM appellations WHERE County='Napa';", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6526", "db_id": "wine_1", "question": "What are the names and scores of all wines?", "gold_sql": "SELECT Name , Score FROM WINE", "raw_output": " نحوه:SELECT Name, Score FROM wine", "predicted_sql": "نحوه:SELECT Name, Score FROM wine", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6553", "db_id": "wine_1", "question": "What are the numbers of wines for different grapes?", "gold_sql": "SELECT count(*) , Grape FROM WINE GROUP BY Grape", "raw_output": " نحوه_wine.No, grapes.Grape", "predicted_sql": "نحوه_wine.No, grapes.Grape", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6579", "db_id": "wine_1", "question": "Find the wineries that have at least four wines.", "gold_sql": "SELECT Winery FROM WINE GROUP BY Winery HAVING count(*) >= 4", "raw_output": " نحوه_wine.Winery, count(*) >= 4", "predicted_sql": "نحوه_wine.Winery, count(*) >= 4", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6523", "db_id": "wine_1", "question": "List the grapes and appelations of all wines.", "gold_sql": "SELECT Grape , Appelation FROM WINE", "raw_output": " نحوه:SELECT T1.Grape, T3.Appelation FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T1.Appelation = T3.Appelation", "predicted_sql": "نحوه:SELECT T1.Grape, T3.Appelation FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T1.Appelation = T3.Appelation", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6527", "db_id": "wine_1", "question": "List the area and county of all appelations.", "gold_sql": "SELECT Area , County FROM APPELLATIONS", "raw_output": " نحوه:SELECT Area, County FROM appellations", "predicted_sql": "نحوه:SELECT Area, County FROM appellations", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6517", "db_id": "wine_1", "question": "What is the name of the highest rated wine?", "gold_sql": "SELECT Name FROM WINE ORDER BY Score LIMIT 1", "raw_output": " نحوه_wine.Name, MAX(Score)", "predicted_sql": "نحوه_wine.Name, MAX(Score)", "generation_status": "ok", "prompt_tokens": 288, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6524", "db_id": "wine_1", "question": "What are the grapes and appelations of each wine?", "gold_sql": "SELECT Grape , Appelation FROM WINE", "raw_output": "2SELECT T1.Grape, T3.Appelation FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T1.Appelation = T3.Appelation", "predicted_sql": "2SELECT T1.Grape, T3.Appelation FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T1.Appelation = T3.Appelation", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6518", "db_id": "wine_1", "question": "Give the name of the wine with the highest score.", "gold_sql": "SELECT Name FROM WINE ORDER BY Score LIMIT 1", "raw_output": "SELECT T1.Name FROM wine AS T1 ORDER BY T1.Score DESC LIMIT 1", "predicted_sql": "SELECT T1.Name FROM wine AS T1 ORDER BY T1.Score DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6555", "db_id": "wine_1", "question": "What are the average prices of wines for different years?", "gold_sql": "SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR", "raw_output": "SELECT Year, AVG(Price) FROM wine GROUP BY Year", "predicted_sql": "SELECT Year, AVG(Price) FROM wine GROUP BY Year", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6537", "db_id": "wine_1", "question": "How many wines are produced at Robert Biale winery?", "gold_sql": "SELECT count(*) FROM WINE WHERE Winery = \"Robert Biale\"", "raw_output": "SELECT count(T1.No) FROM wine AS T1 INNER JOIN wineries AS T2 ON T1.Winery = T2.Name WHERE T2.Name = 'Robert Biale'", "predicted_sql": "SELECT count(T1.No) FROM wine AS T1 INNER JOIN wineries AS T2 ON T1.Winery = T2.Name WHERE T2.Name = 'Robert Biale'", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: wineries", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6534", "db_id": "wine_1", "question": "What are the names of wines made from red grapes?", "gold_sql": "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\"", "raw_output": "SELECT T1.Name FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'Red'", "predicted_sql": "SELECT T1.Name FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'Red'", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6528", "db_id": "wine_1", "question": "What are the areas and counties for all appelations?", "gold_sql": "SELECT Area , County FROM APPELLATIONS", "raw_output": "SELECT Area, County FROM appellations", "predicted_sql": "SELECT Area, County FROM appellations", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6561", "db_id": "wine_1", "question": "List the names of all distinct wines ordered by price.", "gold_sql": "SELECT DISTINCT Name FROM WINE ORDER BY price", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 ORDER BY T1.Price", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 ORDER BY T1.Price", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6556", "db_id": "wine_1", "question": "What is the average prices of wines for each each?", "gold_sql": "SELECT avg(Price) , YEAR FROM WINE GROUP BY YEAR", "raw_output": "SELECT T1.Grape, AVG(T2.Price) FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.Grape", "predicted_sql": "SELECT T1.Grape, AVG(T2.Price) FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.Grape", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2896", "db_id": "icfp_1", "question": "Find the titles of papers whose first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"?", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"Japan\" AND t2.authorder = 1 AND t1.lname = \"Ohori\"", "raw_output": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID INNER JOIN Inst AS T4 ON T2.instID = T4.instID WHERE T4.country = 'Japan' AND T3.lname = 'Ohori'", "predicted_sql": "SELECT T1.title FROM Papers AS T1 INNER JOIN Authorship AS T2 ON T1.paperID = T2.paperID INNER JOIN Authors AS T3 ON T2.authID = T3.authID INNER JOIN Inst AS T4 ON T2.instID = T4.instID WHERE T4.country = 'Japan' AND T3.lname = 'Ohori'", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 86, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6559", "db_id": "wine_1", "question": "List the names of all distinct wines in alphabetical order.", "gold_sql": "SELECT DISTINCT Name FROM WINE ORDER BY Name", "raw_output": "SELECT DISTINCT Name FROM wine ORDER BY Name;", "predicted_sql": "SELECT DISTINCT Name FROM wine ORDER BY Name;", "generation_status": "ok", "prompt_tokens": 289, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6538", "db_id": "wine_1", "question": "Count the number of wines produced at Robert Biale winery.", "gold_sql": "SELECT count(*) FROM WINE WHERE Winery = \"Robert Biale\"", "raw_output": "SELECT count(*) FROM wine WHERE Winery = 'Robert Biale'", "predicted_sql": "SELECT count(*) FROM wine WHERE Winery = 'Robert Biale'", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6562", "db_id": "wine_1", "question": "What are the names of wines, sorted by price ascending?", "gold_sql": "SELECT DISTINCT Name FROM WINE ORDER BY price", "raw_output": "SELECT T1.Name FROM wine AS T1 ORDER BY T1.Price ASC", "predicted_sql": "SELECT T1.Name FROM wine AS T1 ORDER BY T1.Price ASC", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3404", "db_id": "manufacturer", "question": "Find the name of the company that produces both furnitures with less than 6 components and furnitures with more than 10 components.", "gold_sql": "SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component < 6 INTERSECT SELECT t3.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID JOIN manufacturer AS t3 ON t2.manufacturer_id = t3.manufacturer_id WHERE t1.num_of_component > 10", "raw_output": "SELECT T1.Name FROM manufacturer AS T1 JOIN furniture_manufacte AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID JOIN furniture AS T3 ON T2.Furniture_ID = T3.Furniture_ID WHERE T3.Num_of_Component < 6 INTERSECT SELECT T1.Name FROM manufacturer AS T1 JOIN furniture_manufacte AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID JOIN furniture AS T3 ON T2.Furniture_ID = T3.Furniture_ID WHERE T3.Num_of_Component > 10", "predicted_sql": "SELECT T1.Name FROM manufacturer AS T1 JOIN furniture_manufacte AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID JOIN furniture AS T3 ON T2.Furniture_ID = T3.Furniture_ID WHERE T3.Num_of_Component < 6 INTERSECT SELECT T1.Name FROM manufacturer AS T1 JOIN furniture_manufacte AS T2 ON T1.Manufacturer_ID = T2.Manufacturer_ID JOIN furniture AS T3 ON T2.Furniture_ID = T3.Furniture_ID WHERE T3.Num_of_Component > 10", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 131, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6519", "db_id": "wine_1", "question": "Which winery is the wine that has the highest score from?", "gold_sql": "SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1", "raw_output": "SELECT T1.Winery FROM wine AS T1 ORDER BY T1.Score DESC LIMIT 1", "predicted_sql": "SELECT T1.Winery FROM wine AS T1 ORDER BY T1.Score DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6560", "db_id": "wine_1", "question": "What are the names of wines, sorted in alphabetical order?", "gold_sql": "SELECT DISTINCT Name FROM WINE ORDER BY Name", "raw_output": "SELECT Name FROM wine ORDER BY Name;", "predicted_sql": "SELECT Name FROM wine ORDER BY Name;", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3398", "db_id": "manufacturer", "question": "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.", "gold_sql": "SELECT name , open_year FROM manufacturer WHERE num_of_shops > 10 OR Num_of_Factories < 10", "raw_output": "SELECT T1.Name, T1.Open_Year FROM manufacturer AS T1 WHERE T1.Num_of_Factories < 10 OR T1.Num_of_Shops > 10", "predicted_sql": "SELECT T1.Name, T1.Open_Year FROM manufacturer AS T1 WHERE T1.Num_of_Factories < 10 OR T1.Num_of_Shops > 10", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6544", "db_id": "wine_1", "question": "Give the names and scores of wines made from white grapes.", "gold_sql": "SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\"", "raw_output": "SELECT T1.Name, T1.Score FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'White'", "predicted_sql": "SELECT T1.Name, T1.Score FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'White'", "generation_status": "ok", "prompt_tokens": 290, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6575", "db_id": "wine_1", "question": "What are the maximum price and score of wines in each year?", "gold_sql": "SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR", "raw_output": "SELECT Year, MAX(Price), MAX(Score) FROM wine GROUP BY Year", "predicted_sql": "SELECT Year, MAX(Price), MAX(Score) FROM wine GROUP BY Year", "generation_status": "ok", "prompt_tokens": 291, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6576", "db_id": "wine_1", "question": "What are the maximum price and score of wines for each year?", "gold_sql": "SELECT max(Price) , max(Score) , YEAR FROM WINE GROUP BY YEAR", "raw_output": "SELECT Year, MAX(Price), MAX(Score) FROM wine GROUP BY Year", "predicted_sql": "SELECT Year, MAX(Price), MAX(Score) FROM wine GROUP BY Year", "generation_status": "ok", "prompt_tokens": 291, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6530", "db_id": "wine_1", "question": "Return the prices of wines produced before 2010.", "gold_sql": "SELECT Price FROM WINE WHERE YEAR < 2010", "raw_output": "SELECT T1.Price FROM wine AS T1 WHERE T1.Year < 2010", "predicted_sql": "SELECT T1.Price FROM wine AS T1 WHERE T1.Year < 2010", "generation_status": "ok", "prompt_tokens": 291, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6596", "db_id": "wine_1", "question": "What is the average price for wines not produced in Sonoma county?", "gold_sql": "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')", "raw_output": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County != 'Sonoma'", "predicted_sql": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County != 'Sonoma'", "generation_status": "ok", "prompt_tokens": 291, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6588", "db_id": "wine_1", "question": "Which 3 wineries produce the most wines made from white grapes?", "gold_sql": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3", "raw_output": "SELECT T1.Winery, count(*) FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'White' GROUP BY T1.Winery ORDER BY count(*) DESC LIMIT 3", "predicted_sql": "SELECT T1.Winery, count(*) FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'White' GROUP BY T1.Winery ORDER BY count(*) DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 291, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6532", "db_id": "wine_1", "question": "What are the names of wines with scores higher than 90?", "gold_sql": "SELECT Name FROM WINE WHERE score > 90", "raw_output": "SELECT T1.Name FROM wine AS T1 INNER JOIN wine AS T2 ON T1.No = T2.No WHERE T2.Score > 90", "predicted_sql": "SELECT T1.Name FROM wine AS T1 INNER JOIN wine AS T2 ON T1.No = T2.No WHERE T2.Score > 90", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 36, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6578", "db_id": "wine_1", "question": "What are the average price and score of wines for each appelation?", "gold_sql": "SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation", "raw_output": "SELECT T1.Appelation, AVG(T2.Price), AVG(T2.Score) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation GROUP BY T1.Appelation", "predicted_sql": "SELECT T1.Appelation, AVG(T2.Price), AVG(T2.Score) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation GROUP BY T1.Appelation", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6595", "db_id": "wine_1", "question": "Find the average price of wines that are not produced from Sonoma county.", "gold_sql": "SELECT avg(price) FROM wine WHERE Appelation NOT IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')", "raw_output": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County != 'Sonoma'", "predicted_sql": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County != 'Sonoma'", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6521", "db_id": "wine_1", "question": "Find the names of all wines produced in 2008.", "gold_sql": "SELECT Name FROM WINE WHERE YEAR = \"2008\"", "raw_output": "SELECT T1.Name FROM wine AS T1 WHERE T1.Year = 2008", "predicted_sql": "SELECT T1.Name FROM wine AS T1 WHERE T1.Year = 2008", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6582", "db_id": "wine_1", "question": "What are the countries for appelations with at most 3 wines?", "gold_sql": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3", "raw_output": "SELECT T1.County FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation WHERE T1.No IN (SELECT T1.No FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation GROUP BY T1.No HAVING count(*) <= 3)", "predicted_sql": "SELECT T1.County FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation WHERE T1.No IN (SELECT T1.No FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation GROUP BY T1.No HAVING count(*) <= 3)", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6581", "db_id": "wine_1", "question": "Find the country of all appelations who have at most three wines.", "gold_sql": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING count(*) <= 3", "raw_output": "SELECT T1.County FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation WHERE T1.No IN (SELECT T1.No FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation GROUP BY T1.No HAVING count(*) <= 3)", "predicted_sql": "SELECT T1.County FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation WHERE T1.No IN (SELECT T1.No FROM appellations AS T1 JOIN wine AS T2 ON T1.No = T2.Appelation GROUP BY T1.No HAVING count(*) <= 3)", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6577", "db_id": "wine_1", "question": "What are the average price and score of wines grouped by appelation?", "gold_sql": "SELECT avg(Price) , avg(Score) , Appelation FROM WINE GROUP BY Appelation", "raw_output": "SELECT AVG(T3.Price), AVG(T3.Score) FROM wine AS T3 INNER JOIN appellations AS T2 ON T3.Appelation = T2.No GROUP BY T2.Appelation", "predicted_sql": "SELECT AVG(T3.Price), AVG(T3.Score) FROM wine AS T3 INNER JOIN appellations AS T2 ON T3.Appelation = T2.No GROUP BY T2.Appelation", "generation_status": "ok", "prompt_tokens": 292, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6548", "db_id": "wine_1", "question": "Find the white grape used to produce wines with scores above 90.", "gold_sql": "SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\" AND T2.score > 90", "raw_output": "SELECT T1.Grape FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T1.Score > 90 AND T2.Color = 'White'", "predicted_sql": "SELECT T1.Grape FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T1.Score > 90 AND T2.Color = 'White'", "generation_status": "ok", "prompt_tokens": 293, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6520", "db_id": "wine_1", "question": "What is the winery at which the wine with the highest score was made?", "gold_sql": "SELECT Winery FROM WINE ORDER BY SCORE LIMIT 1", "raw_output": "SELECT T1.Winery FROM wine AS T1 ORDER BY T1.Score DESC LIMIT 1", "predicted_sql": "SELECT T1.Winery FROM wine AS T1 ORDER BY T1.Score DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 293, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6542", "db_id": "wine_1", "question": "What is the average price of wines produced in appelations in Sonoma County?", "gold_sql": "SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Sonoma\"", "raw_output": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County = 'Sonoma';", "predicted_sql": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County = 'Sonoma';", "generation_status": "ok", "prompt_tokens": 293, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6566", "db_id": "wine_1", "question": "Give the color of the grape whose wine products have the highest average price?", "gold_sql": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1", "raw_output": "SELECT T1.Color FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.Color ORDER BY AVG(T2.Price) DESC LIMIT 1", "predicted_sql": "SELECT T1.Color FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.Color ORDER BY AVG(T2.Price) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 293, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:6533", "db_id": "wine_1", "question": "List the names of all distinct wines that are made of red color grape.", "gold_sql": "SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\"", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'red'", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'red'", "generation_status": "ok", "prompt_tokens": 293, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6522", "db_id": "wine_1", "question": "What are the names of all wines produced in 2008?", "gold_sql": "SELECT Name FROM WINE WHERE YEAR = \"2008\"", "raw_output": "SELECT T1.Name FROM wine AS T1 WHERE T1.Year = 2008", "predicted_sql": "SELECT T1.Name FROM wine AS T1 WHERE T1.Year = 2008", "generation_status": "ok", "prompt_tokens": 293, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6535", "db_id": "wine_1", "question": "Find the names of all distinct wines that have appellations in North Coast area.", "gold_sql": "SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"North Coast\"", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 INNER JOIN wine AS T2 ON T1.No = T2.No INNER JOIN appellations AS T3 ON T1.Appelation = T3.Appelation WHERE T3.Area = 'North Coast'", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 INNER JOIN wine AS T2 ON T1.No = T2.No INNER JOIN appellations AS T3 ON T1.Appelation = T3.Appelation WHERE T3.Area = 'North Coast'", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6598", "db_id": "wine_1", "question": "What is the county that produces the most wines scoring higher than 90?", "gold_sql": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.County FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(T2.No) DESC LIMIT 1", "predicted_sql": "SELECT T1.County FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(T2.No) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6531", "db_id": "wine_1", "question": "List the names of all distinct wines that have scores higher than 90.", "gold_sql": "SELECT Name FROM WINE WHERE score > 90", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 WHERE T1.Score > 90", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 WHERE T1.Score > 90", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6565", "db_id": "wine_1", "question": "What is the color of the grape whose wine products has the highest average price?", "gold_sql": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1", "raw_output": "SELECT T1.Color FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.ID ORDER BY AVG(T2.Price) DESC LIMIT 1", "predicted_sql": "SELECT T1.Color FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape GROUP BY T1.ID ORDER BY AVG(T2.Price) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2897", "db_id": "icfp_1", "question": "Which papers' first author is affiliated with an institution in the country \"Japan\" and has last name \"Ohori\"? Give me the titles of the papers.", "gold_sql": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"Japan\" AND t2.authorder = 1 AND t1.lname = \"Ohori\"", "raw_output": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Authors AS T3 ON T2.authID = T3.authID JOIN Inst AS T4 ON T2.instID = T4.instID WHERE T4.country = 'Japan' AND T3.lname = 'Ohori' AND T2.authOrder = 1", "predicted_sql": "SELECT T1.title FROM Papers AS T1 JOIN Authorship AS T2 ON T1.paperID = T2.paperID JOIN Authors AS T3 ON T2.authID = T3.authID JOIN Inst AS T4 ON T2.instID = T4.instID WHERE T4.country = 'Japan' AND T3.lname = 'Ohori' AND T2.authOrder = 1", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 92, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6584", "db_id": "wine_1", "question": "What are the names of wines produced before any wine from the Brander winery?", "gold_sql": "SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = \"Brander\")", "raw_output": "SELECT T1.Name FROM wine AS T1 JOIN wineries AS T2 ON T1.Winery = T2.Winery WHERE T1.Year < (SELECT MIN(Year) FROM wine WHERE Winery = 'Brander')", "predicted_sql": "SELECT T1.Name FROM wine AS T1 JOIN wineries AS T2 ON T1.Winery = T2.Winery WHERE T1.Year < (SELECT MIN(Year) FROM wine WHERE Winery = 'Brander')", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: wineries", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6543", "db_id": "wine_1", "question": "What are the names and scores of wines that are made of white color grapes?", "gold_sql": "SELECT T2.Name , T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\"", "raw_output": "SELECT T1.Name, T1.Score FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'white'", "predicted_sql": "SELECT T1.Name, T1.Score FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'white'", "generation_status": "ok", "prompt_tokens": 294, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6573", "db_id": "wine_1", "question": "What are the maximum price and score of wines produced by St. Helena appelation?", "gold_sql": "SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = \"St. Helena\"", "raw_output": "SELECT MAX(T1.Price), MAX(T1.Score) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Appelation = 'St. Helena'", "predicted_sql": "SELECT MAX(T1.Price), MAX(T1.Score) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Appelation = 'St. Helena'", "generation_status": "ok", "prompt_tokens": 295, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6529", "db_id": "wine_1", "question": "What are the prices of wines produced before the year of 2010?", "gold_sql": "SELECT Price FROM WINE WHERE YEAR < 2010", "raw_output": "SELECT T1.Price FROM wine AS T1 WHERE T1.Year < 2010", "predicted_sql": "SELECT T1.Price FROM wine AS T1 WHERE T1.Year < 2010", "generation_status": "ok", "prompt_tokens": 295, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6541", "db_id": "wine_1", "question": "Give me the average prices of wines that are produced by appelations in Sonoma County.", "gold_sql": "SELECT AVG(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Sonoma\"", "raw_output": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County = 'Sonoma';", "predicted_sql": "SELECT AVG(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.County = 'Sonoma';", "generation_status": "ok", "prompt_tokens": 295, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6536", "db_id": "wine_1", "question": "What are the distinct names of wines that have appellations in the North Coast area?", "gold_sql": "SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"North Coast\"", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Area = 'North Coast'", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Area = 'North Coast'", "generation_status": "ok", "prompt_tokens": 295, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6574", "db_id": "wine_1", "question": "Give the maximum price and score for wines produced in the appelation St. Helena.", "gold_sql": "SELECT max(Price) , max(Score) FROM WINE WHERE Appelation = \"St. Helena\"", "raw_output": "SELECT MAX(T1.Price), MAX(T1.Score) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Appelation = 'St. Helena'", "predicted_sql": "SELECT MAX(T1.Price), MAX(T1.Score) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Appelation = 'St. Helena'", "generation_status": "ok", "prompt_tokens": 295, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6550", "db_id": "wine_1", "question": "What are the names of wines made from red grapes and with prices above 50?", "gold_sql": "SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\" AND T2.price > 50", "raw_output": "SELECT T1.Name FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'red' AND T1.Price > 50", "predicted_sql": "SELECT T1.Name FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'red' AND T1.Price > 50", "generation_status": "ok", "prompt_tokens": 296, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6597", "db_id": "wine_1", "question": "Find the county where produces the most number of wines with score higher than 90.", "gold_sql": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T2.County FROM wine AS T1 JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Score > 90 GROUP BY T2.County ORDER BY COUNT(T1.No) DESC LIMIT 1", "predicted_sql": "SELECT T2.County FROM wine AS T1 JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Score > 90 GROUP BY T2.County ORDER BY COUNT(T1.No) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 296, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6586", "db_id": "wine_1", "question": "Give the names of wines with prices above any wine produced in 2006.", "gold_sql": "SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006)", "raw_output": "SELECT T1.Name FROM wine AS T1 WHERE T1.Price > (SELECT MAX(Price) FROM wine WHERE Year = 2006)", "predicted_sql": "SELECT T1.Name FROM wine AS T1 WHERE T1.Price > (SELECT MAX(Price) FROM wine WHERE Year = 2006)", "generation_status": "ok", "prompt_tokens": 296, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6558", "db_id": "wine_1", "question": "What are the distinct names of wines with prices higher than any wine from John Anthony winery.", "gold_sql": "SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = \"John Anthony\")", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 JOIN wineries AS T2 ON T1.Winery = T2.Winery WHERE T1.Price > (SELECT MAX(Price) FROM wine WHERE Winery = 'John Anthony')", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 JOIN wineries AS T2 ON T1.Winery = T2.Winery WHERE T1.Price > (SELECT MAX(Price) FROM wine WHERE Winery = 'John Anthony')", "generation_status": "ok", "prompt_tokens": 296, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: wineries", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6569", "db_id": "wine_1", "question": "Find the distinct winery of wines having price between 50 and 100.", "gold_sql": "SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100", "raw_output": "SELECT DISTINCT T1.Winery FROM wine AS T1 WHERE T1.Price BETWEEN 50 AND 100", "predicted_sql": "SELECT DISTINCT T1.Winery FROM wine AS T1 WHERE T1.Price BETWEEN 50 AND 100", "generation_status": "ok", "prompt_tokens": 296, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6587", "db_id": "wine_1", "question": "Find the top 3 wineries with the greatest number of wines made of white color grapes.", "gold_sql": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY count(*) DESC LIMIT 3", "raw_output": "SELECT T1.Winery FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'White' GROUP BY T1.Winery ORDER BY COUNT(T1.No) DESC LIMIT 3", "predicted_sql": "SELECT T1.Winery FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Color = 'White' GROUP BY T1.Winery ORDER BY COUNT(T1.No) DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 296, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6570", "db_id": "wine_1", "question": "What are the distinct wineries which produce wines costing between 50 and 100?", "gold_sql": "SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100", "raw_output": "SELECT DISTINCT T1.Winery FROM wine AS T1 WHERE T1.Price BETWEEN 50 AND 100", "predicted_sql": "SELECT DISTINCT T1.Winery FROM wine AS T1 WHERE T1.Price BETWEEN 50 AND 100", "generation_status": "ok", "prompt_tokens": 297, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6557", "db_id": "wine_1", "question": "Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.", "gold_sql": "SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT min(Price) FROM wine WHERE Winery = \"John Anthony\")", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 JOIN wine AS T2 ON T1.Price > T2.Price WHERE T2.Winery = 'John Anthony';", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 JOIN wine AS T2 ON T1.Price > T2.Price WHERE T2.Winery = 'John Anthony';", "generation_status": "ok", "prompt_tokens": 297, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6549", "db_id": "wine_1", "question": "What are the wines that have prices higher than 50 and made of Red color grapes?", "gold_sql": "SELECT T2.Name FROM Grapes AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"Red\" AND T2.price > 50", "raw_output": "SELECT T1.Name FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T1.Price > 50 AND T2.Color = 'Red'", "predicted_sql": "SELECT T1.Name FROM wine AS T1 JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T1.Price > 50 AND T2.Color = 'Red'", "generation_status": "ok", "prompt_tokens": 297, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6552", "db_id": "wine_1", "question": "Give the neames of wines with prices below 50 and with appelations in Monterey county.", "gold_sql": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Monterey\" AND T2.price < 50", "raw_output": "SELECT T1.Name FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Price < 50 AND T2.County = 'Monterey'", "predicted_sql": "SELECT T1.Name FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Price < 50 AND T2.County = 'Monterey'", "generation_status": "ok", "prompt_tokens": 298, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6551", "db_id": "wine_1", "question": "What are the wines that have prices lower than 50 and have appelations in Monterey county?", "gold_sql": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Monterey\" AND T2.price < 50", "raw_output": "SELECT T1.Name FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Price < 50 AND T2.County = 'Monterey'", "predicted_sql": "SELECT T1.Name FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Price < 50 AND T2.County = 'Monterey'", "generation_status": "ok", "prompt_tokens": 298, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6568", "db_id": "wine_1", "question": "Give the distinct names of wines made before 2000 or after 2010.", "gold_sql": "SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 WHERE T1.Year < 2000 OR T1.Year > 2010", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 WHERE T1.Year < 2000 OR T1.Year > 2010", "generation_status": "ok", "prompt_tokens": 299, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6547", "db_id": "wine_1", "question": "Find the the grape whose white color grapes are used to produce wines with scores higher than 90.", "gold_sql": "SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = \"White\" AND T2.score > 90", "raw_output": "SELECT T1.Grape FROM grapes AS T1 INNER JOIN wine AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = 'white' AND T2.Score > 90", "predicted_sql": "SELECT T1.Grape FROM grapes AS T1 INNER JOIN wine AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = 'white' AND T2.Score > 90", "generation_status": "ok", "prompt_tokens": 299, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6564", "db_id": "wine_1", "question": "What is the area for the appelation which produced the most wines prior to 2010?", "gold_sql": "SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Area FROM appellations AS T1 INNER JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Year < 2010 GROUP BY T1.No ORDER BY COUNT(T2.No) DESC LIMIT 1", "predicted_sql": "SELECT T1.Area FROM appellations AS T1 INNER JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Year < 2010 GROUP BY T1.No ORDER BY COUNT(T2.No) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 299, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6592", "db_id": "wine_1", "question": "What are the grapes, appelations, and wines with scores above 93, sorted by Name?", "gold_sql": "SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name", "raw_output": "SELECT T1.Grape, T3.Appelation, T2.Name FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T2.Appelation = T3.Appelation WHERE T2.Score > 93 ORDER BY T2.Name", "predicted_sql": "SELECT T1.Grape, T3.Appelation, T2.Name FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T2.Appelation = T3.Appelation WHERE T2.Score > 93 ORDER BY T2.Name", "generation_status": "ok", "prompt_tokens": 299, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6583", "db_id": "wine_1", "question": "What are the names of wines whose production year are before the year of all wines by Brander winery?", "gold_sql": "SELECT Name FROM WINE WHERE YEAR < (SELECT min(YEAR) FROM WINE WHERE Winery = \"Brander\")", "raw_output": "SELECT T1.Name FROM wine AS T1 JOIN winery AS T2 ON T1.Winery = T2.Winery WHERE T1.Year < (SELECT MAX(Year) FROM wine WHERE Winery = 'Brander');", "predicted_sql": "SELECT T1.Name FROM wine AS T1 JOIN winery AS T2 ON T1.Winery = T2.Winery WHERE T1.Year < (SELECT MAX(Year) FROM wine WHERE Winery = 'Brander');", "generation_status": "ok", "prompt_tokens": 299, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: winery", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6591", "db_id": "wine_1", "question": "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.", "gold_sql": "SELECT Grape , Appelation , Name FROM WINE WHERE Score > 93 ORDER BY Name", "raw_output": "SELECT T1.Grape, T3.Appelation, T2.Name FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T2.Appelation = T3.Appelation WHERE T2.Score > 93 ORDER BY T2.Name", "predicted_sql": "SELECT T1.Grape, T3.Appelation, T2.Name FROM grapes AS T1 JOIN wine AS T2 ON T1.Grape = T2.Grape JOIN appellations AS T3 ON T2.Appelation = T3.Appelation WHERE T2.Score > 93 ORDER BY T2.Name", "generation_status": "ok", "prompt_tokens": 300, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6594", "db_id": "wine_1", "question": "What are the appelations for wines produced after 2008 but not in the Central Coast area?", "gold_sql": "SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = \"Central Coast\"", "raw_output": "SELECT T1.Appelation FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Year > 2008 AND T2.Area != 'Central Coast'", "predicted_sql": "SELECT T1.Appelation FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Year > 2008 AND T2.Area != 'Central Coast'", "generation_status": "ok", "prompt_tokens": 300, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6589", "db_id": "wine_1", "question": "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.", "gold_sql": "SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR", "raw_output": "SELECT T1.Grape, T2.Winery, T2.Year FROM wine AS T2 INNER JOIN grapes AS T1 ON T2.Grape = T1.Grape WHERE T2.Price > 100 ORDER BY T2.Year", "predicted_sql": "SELECT T1.Grape, T2.Winery, T2.Year FROM wine AS T2 INNER JOIN grapes AS T1 ON T2.Grape = T1.Grape WHERE T2.Price > 100 ORDER BY T2.Year", "generation_status": "ok", "prompt_tokens": 301, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6590", "db_id": "wine_1", "question": "What are the grapes, wineries and years for wines with price higher than 100, sorted by year?", "gold_sql": "SELECT Grape , Winery , YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR", "raw_output": "SELECT T1.Grape, T2.Winery, T2.Year FROM wine AS T2 JOIN grapes AS T1 ON T2.Grape = T1.Grape WHERE T2.Price > 100 ORDER BY T2.Year", "predicted_sql": "SELECT T1.Grape, T2.Winery, T2.Year FROM wine AS T2 JOIN grapes AS T1 ON T2.Grape = T1.Grape WHERE T2.Price > 100 ORDER BY T2.Year", "generation_status": "ok", "prompt_tokens": 301, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6593", "db_id": "wine_1", "question": "Find the appelations that produce wines after the year of 2008 but not in Central Coast area.", "gold_sql": "SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = \"Central Coast\"", "raw_output": "SELECT T1.Appelation FROM appellations AS T1 INNER JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Year > 2008 AND T1.Area != 'Central Coast'", "predicted_sql": "SELECT T1.Appelation FROM appellations AS T1 INNER JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Year > 2008 AND T1.Area != 'Central Coast'", "generation_status": "ok", "prompt_tokens": 301, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6572", "db_id": "wine_1", "question": "Give the average price and case of wines made from Zinfandel grapes in the year 2009.", "gold_sql": "SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = \"Zinfandel\"", "raw_output": "SELECT AVG(T1.Price), AVG(T1.Cases) FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Grape = 'Zinfandel' AND T1.Year = 2009", "predicted_sql": "SELECT AVG(T1.Price), AVG(T1.Cases) FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T2.Grape = 'Zinfandel' AND T1.Year = 2009", "generation_status": "ok", "prompt_tokens": 301, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6585", "db_id": "wine_1", "question": "What are the names of wines that are more expensive then all wines made in the year 2006?", "gold_sql": "SELECT Name FROM WINE WHERE Price > (SELECT max(Price) FROM WINE WHERE YEAR = 2006)", "raw_output": "SELECT T1.Name FROM wine AS T1 WHERE T1.Price > (SELECT AVG(T2.Price) FROM wine AS T2 WHERE T2.Year = 2006)", "predicted_sql": "SELECT T1.Name FROM wine AS T1 WHERE T1.Price > (SELECT AVG(T2.Price) FROM wine AS T2 WHERE T2.Year = 2006)", "generation_status": "ok", "prompt_tokens": 301, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6563", "db_id": "wine_1", "question": "What is the area of the appelation that produces the highest number of wines before the year of 2010?", "gold_sql": "SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Area FROM appellations AS T1 INNER JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Year < 2010 GROUP BY T1.Area ORDER BY COUNT(T2.No) DESC LIMIT 1", "predicted_sql": "SELECT T1.Area FROM appellations AS T1 INNER JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Year < 2010 GROUP BY T1.Area ORDER BY COUNT(T2.No) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 303, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6545", "db_id": "wine_1", "question": "Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.", "gold_sql": "SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"Central Coast\" AND T2.year < 2005", "raw_output": "SELECT MAX(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Area = 'Central Coast' AND T1.Year < 2005", "predicted_sql": "SELECT MAX(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Area = 'Central Coast' AND T1.Year < 2005", "generation_status": "ok", "prompt_tokens": 304, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2750", "db_id": "election", "question": "How many distinct governors are there?", "gold_sql": "SELECT count(DISTINCT Governor) FROM party", "raw_output": "SELECT COUNT(DISTINCT Governor) FROM party", "predicted_sql": "SELECT COUNT(DISTINCT Governor) FROM party", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6546", "db_id": "wine_1", "question": "What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?", "gold_sql": "SELECT max(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"Central Coast\" AND T2.year < 2005", "raw_output": "SELECT MAX(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Area = 'Central Coast' AND T1.Year < 2005", "predicted_sql": "SELECT MAX(T1.Price) FROM wine AS T1 INNER JOIN appellations AS T2 ON T1.Appelation = T2.No WHERE T2.Area = 'Central Coast' AND T1.Year < 2005", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2756", "db_id": "election", "question": "Show all the information about election.", "gold_sql": "SELECT * FROM election", "raw_output": "SELECT * FROM election", "predicted_sql": "SELECT * FROM election", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2735", "db_id": "election", "question": "Count the total number of counties.", "gold_sql": "SELECT count(*) FROM county", "raw_output": "SELECT COUNT(*) FROM county", "predicted_sql": "SELECT COUNT(*) FROM county", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6567", "db_id": "wine_1", "question": "Find the distinct names of wines produced before the year of 2000 or after the year of 2010.", "gold_sql": "SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010", "raw_output": "SELECT DISTINCT T1.Name FROM wine AS T1 WHERE T1.Year < 2000 OR T1.Year > 2010", "predicted_sql": "SELECT DISTINCT T1.Name FROM wine AS T1 WHERE T1.Year < 2000 OR T1.Year > 2010", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6571", "db_id": "wine_1", "question": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?", "gold_sql": "SELECT AVG(Price) , AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = \"Zinfandel\"", "raw_output": "SELECT AVG(T1.Price), AVG(T1.Cases) FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T1.Year = 2009 AND T2.Grape = 'Zinfandel'", "predicted_sql": "SELECT AVG(T1.Price), AVG(T1.Cases) FROM wine AS T1 INNER JOIN grapes AS T2 ON T1.Grape = T2.Grape WHERE T1.Year = 2009 AND T2.Grape = 'Zinfandel'", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2751", "db_id": "election", "question": "Count the number of distinct governors.", "gold_sql": "SELECT count(DISTINCT Governor) FROM party", "raw_output": "SELECT count(DISTINCT T1.Governor) FROM party AS T1", "predicted_sql": "SELECT count(DISTINCT T1.Governor) FROM party AS T1", "generation_status": "ok", "prompt_tokens": 305, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2789", "db_id": "election", "question": "Which party has two or more records?", "gold_sql": "SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2", "raw_output": "SELECT Party FROM party GROUP BY Party HAVING count(*) >= 2", "predicted_sql": "SELECT Party FROM party GROUP BY Party HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 306, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2742", "db_id": "election", "question": "Show all the distinct districts for elections.", "gold_sql": "SELECT DISTINCT District FROM election", "raw_output": "SELECT DISTINCT District FROM election", "predicted_sql": "SELECT DISTINCT District FROM election", "generation_status": "ok", "prompt_tokens": 306, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2743", "db_id": "election", "question": "What are the distinct districts for elections?", "gold_sql": "SELECT DISTINCT District FROM election", "raw_output": "SELECT DISTINCT District FROM election", "predicted_sql": "SELECT DISTINCT District FROM election", "generation_status": "ok", "prompt_tokens": 306, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2738", "db_id": "election", "question": "Show the average population of all counties.", "gold_sql": "SELECT avg(Population) FROM county", "raw_output": "SELECT AVG(Population) FROM county", "predicted_sql": "SELECT AVG(Population) FROM county", "generation_status": "ok", "prompt_tokens": 306, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2793", "db_id": "election", "question": "Which people severed as governor most frequently?", "gold_sql": "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT Governor, COUNT(*) AS frequency\nFROM party\nWHERE Governor IS NOT NULL\nGROUP BY Governor\nORDER BY frequency DESC\nLIMIT 1", "predicted_sql": "SELECT Governor, COUNT(*) AS frequency\nFROM party\nWHERE Governor IS NOT NULL\nGROUP BY Governor\nORDER BY frequency DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 306, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2734", "db_id": "election", "question": "How many counties are there in total?", "gold_sql": "SELECT count(*) FROM county", "raw_output": "SELECT COUNT(*) FROM county", "predicted_sql": "SELECT COUNT(*) FROM county", "generation_status": "ok", "prompt_tokens": 306, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2757", "db_id": "election", "question": "Return all the information for each election record.", "gold_sql": "SELECT * FROM election", "raw_output": "SELECT * FROM election", "predicted_sql": "SELECT * FROM election", "generation_status": "ok", "prompt_tokens": 307, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2773", "db_id": "election", "question": "Which committees have delegates from the Democratic party?", "gold_sql": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\"", "raw_output": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'", "predicted_sql": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'", "generation_status": "ok", "prompt_tokens": 307, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2748", "db_id": "election", "question": "Show the delegate and committee information of elections.", "gold_sql": "SELECT Delegate , Committee FROM election", "raw_output": "SELECT T1.Delegate, T1.Committee FROM election AS T1", "predicted_sql": "SELECT T1.Delegate, T1.Committee FROM election AS T1", "generation_status": "ok", "prompt_tokens": 307, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2791", "db_id": "election", "question": "Which party has the largest number of delegates?", "gold_sql": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 307, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2797", "db_id": "election", "question": "Which parties did not have any delegates in elections?", "gold_sql": "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)", "raw_output": "SELECT T1.Party FROM party AS T1 LEFT JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Delegate IS NULL;", "predicted_sql": "SELECT T1.Party FROM party AS T1 LEFT JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Delegate IS NULL;", "generation_status": "ok", "prompt_tokens": 308, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2736", "db_id": "election", "question": "Show the county name and population of all counties.", "gold_sql": "SELECT County_name , Population FROM county", "raw_output": "SELECT County_name, Population FROM county", "predicted_sql": "SELECT County_name, Population FROM county", "generation_status": "ok", "prompt_tokens": 308, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2784", "db_id": "election", "question": "Show the 3 counties with the smallest population.", "gold_sql": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3", "raw_output": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3", "predicted_sql": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3", "generation_status": "ok", "prompt_tokens": 308, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2740", "db_id": "election", "question": "Return the maximum and minimum population among all counties.", "gold_sql": "SELECT max(Population) , min(Population) FROM county", "raw_output": "SELECT MAX(Population), MIN(Population) FROM county", "predicted_sql": "SELECT MAX(Population), MIN(Population) FROM county", "generation_status": "ok", "prompt_tokens": 308, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2746", "db_id": "election", "question": "Show the delegate from district 1 in election.", "gold_sql": "SELECT Delegate FROM election WHERE District = 1", "raw_output": "SELECT T1.Delegate FROM election AS T1 WHERE T1.District = 1", "predicted_sql": "SELECT T1.Delegate FROM election AS T1 WHERE T1.District = 1", "generation_status": "ok", "prompt_tokens": 308, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2737", "db_id": "election", "question": "What are the name and population of each county?", "gold_sql": "SELECT County_name , Population FROM county", "raw_output": "SELECT County_name, Population FROM county", "predicted_sql": "SELECT County_name, Population FROM county", "generation_status": "ok", "prompt_tokens": 308, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2739", "db_id": "election", "question": "On average how large is the population of the counties?", "gold_sql": "SELECT avg(Population) FROM county", "raw_output": "SELECT AVG(Population) FROM county", "predicted_sql": "SELECT AVG(Population) FROM county", "generation_status": "ok", "prompt_tokens": 309, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2781", "db_id": "election", "question": "Sort the names of all counties in descending alphabetical order.", "gold_sql": "SELECT County_name FROM county ORDER BY County_name DESC", "raw_output": "SELECT County_name FROM county ORDER BY County_name DESC", "predicted_sql": "SELECT County_name FROM county ORDER BY County_name DESC", "generation_status": "ok", "prompt_tokens": 309, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2741", "db_id": "election", "question": "What are the maximum and minimum population of the counties?", "gold_sql": "SELECT max(Population) , min(Population) FROM county", "raw_output": "SELECT MAX(Population), MIN(Population) FROM county", "predicted_sql": "SELECT MAX(Population), MIN(Population) FROM county", "generation_status": "ok", "prompt_tokens": 309, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2772", "db_id": "election", "question": "Return all the committees that have delegates from Democratic party.", "gold_sql": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\"", "raw_output": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'", "predicted_sql": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'", "generation_status": "ok", "prompt_tokens": 309, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2792", "db_id": "election", "question": "Show the people that have been governor the most times.", "gold_sql": "SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT Governor, COUNT(*) AS times\nFROM party\nWHERE Governor IS NOT NULL\nGROUP BY Governor\nORDER BY times DESC\nLIMIT 1", "predicted_sql": "SELECT Governor, COUNT(*) AS times\nFROM party\nWHERE Governor IS NOT NULL\nGROUP BY Governor\nORDER BY times DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 309, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2782", "db_id": "election", "question": "Show the name of the county with the biggest population.", "gold_sql": "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1", "raw_output": "SELECT T1.County_name FROM county AS T1 ORDER BY T1.Population DESC LIMIT 1", "predicted_sql": "SELECT T1.County_name FROM county AS T1 ORDER BY T1.Population DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 309, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2786", "db_id": "election", "question": "Show the names of counties that have at least two delegates.", "gold_sql": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2", "raw_output": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name HAVING count(*) >= 2", "predicted_sql": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2800", "db_id": "election", "question": "Which committees have delegates from both democratic party and liberal party?", "gold_sql": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Liberal\"", "raw_output": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'\nINTERSECT\nSELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Liberal'", "predicted_sql": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'\nINTERSECT\nSELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Liberal'", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 80, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2744", "db_id": "election", "question": "Show the zip code of the county with name \"Howard\".", "gold_sql": "SELECT Zip_code FROM county WHERE County_name = \"Howard\"", "raw_output": "SELECT zip_code FROM county WHERE County_name = 'Howard'", "predicted_sql": "SELECT zip_code FROM county WHERE County_name = 'Howard'", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2754", "db_id": "election", "question": "In which distinct years was the governor \"Eliot Spitzer\"?", "gold_sql": "SELECT DISTINCT YEAR FROM party WHERE Governor = \"Eliot Spitzer\"", "raw_output": "SELECT DISTINCT T1.Year FROM party AS T1 WHERE T1.Governor = 'Eliot Spitzer'", "predicted_sql": "SELECT DISTINCT T1.Year FROM party AS T1 WHERE T1.Governor = 'Eliot Spitzer'", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2747", "db_id": "election", "question": "Who is the delegate of district 1 in the elections?", "gold_sql": "SELECT Delegate FROM election WHERE District = 1", "raw_output": "SELECT T1.Delegate FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T1.District = 1", "predicted_sql": "SELECT T1.Delegate FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T1.District = 1", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2749", "db_id": "election", "question": "What are the delegate and committee information for each election record?", "gold_sql": "SELECT Delegate , Committee FROM election", "raw_output": "SELECT T1.Delegate, T1.Committee FROM election AS T1", "predicted_sql": "SELECT T1.Delegate, T1.Committee FROM election AS T1", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2758", "db_id": "election", "question": "Show the delegates and the names of county they belong to.", "gold_sql": "SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District", "raw_output": "SELECT T1.Delegate, T2.County_name FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id", "predicted_sql": "SELECT T1.Delegate, T2.County_name FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 36, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2779", "db_id": "election", "question": "Sort the names of all counties in ascending order of population.", "gold_sql": "SELECT County_name FROM county ORDER BY Population ASC", "raw_output": "SELECT County_name FROM county ORDER BY Population ASC", "predicted_sql": "SELECT County_name FROM county ORDER BY Population ASC", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2790", "db_id": "election", "question": "Show the name of the party that has the most delegates.", "gold_sql": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T2.Party\nFROM election AS T1\nJOIN party AS T2 ON T1.Party = T2.Party_ID\nGROUP BY T2.Party\nORDER BY count(*) DESC\nLIMIT 1", "predicted_sql": "SELECT T2.Party\nFROM election AS T1\nJOIN party AS T2 ON T1.Party = T2.Party_ID\nGROUP BY T2.Party\nORDER BY count(*) DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2752", "db_id": "election", "question": "Show the lieutenant governor and comptroller from the democratic party.", "gold_sql": "SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = \"Democratic\"", "raw_output": "SELECT T1.Lieutenant_Governor, T1.Comptroller FROM party AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'", "predicted_sql": "SELECT T1.Lieutenant_Governor, T1.Comptroller FROM party AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic'", "generation_status": "ok", "prompt_tokens": 310, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2766", "db_id": "election", "question": "Show the delegates and the names of the party they belong to.", "gold_sql": "SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID", "raw_output": "SELECT T1.Delegate, T2.Party FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID", "predicted_sql": "SELECT T1.Delegate, T2.Party FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID", "generation_status": "ok", "prompt_tokens": 311, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2788", "db_id": "election", "question": "Show the name of the party that has at least two records.", "gold_sql": "SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2", "raw_output": "SELECT Party FROM party GROUP BY Party HAVING count(*) >= 2", "predicted_sql": "SELECT Party FROM party GROUP BY Party HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 311, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2753", "db_id": "election", "question": "Who are the lieutenant governor and comptroller from the democratic party?", "gold_sql": "SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = \"Democratic\"", "raw_output": "SELECT T1.Lieutenant_Governor, T1.Comptroller FROM party AS T1 INNER JOIN election AS T2 ON T1.Party_ID = T2.Party WHERE T1.Party = 'Democratic'", "predicted_sql": "SELECT T1.Lieutenant_Governor, T1.Comptroller FROM party AS T1 INNER JOIN election AS T2 ON T1.Party_ID = T2.Party WHERE T1.Party = 'Democratic'", "generation_status": "ok", "prompt_tokens": 311, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2778", "db_id": "election", "question": "Return the names of all counties sorted by population in ascending order.", "gold_sql": "SELECT County_name FROM county ORDER BY Population ASC", "raw_output": "SELECT County_name FROM county ORDER BY Population ASC", "predicted_sql": "SELECT County_name FROM county ORDER BY Population ASC", "generation_status": "ok", "prompt_tokens": 311, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2787", "db_id": "election", "question": "Which counties have two or more delegates? Give me the county names.", "gold_sql": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2", "raw_output": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name HAVING count(*) >= 2", "predicted_sql": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 312, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2796", "db_id": "election", "question": "What are the names of parties that do not have delegates in election?", "gold_sql": "SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election)", "raw_output": "SELECT T1.Party\nFROM party AS T1\nLEFT JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Delegate IS NULL", "predicted_sql": "SELECT T1.Party\nFROM party AS T1\nLEFT JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Delegate IS NULL", "generation_status": "ok", "prompt_tokens": 312, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2755", "db_id": "election", "question": "Find the distinct years when the governor was named \"Eliot Spitzer\".", "gold_sql": "SELECT DISTINCT YEAR FROM party WHERE Governor = \"Eliot Spitzer\"", "raw_output": "SELECT DISTINCT T1.Year FROM party AS T1 WHERE T1.Governor = 'Eliot Spitzer'", "predicted_sql": "SELECT DISTINCT T1.Year FROM party AS T1 WHERE T1.Governor = 'Eliot Spitzer'", "generation_status": "ok", "prompt_tokens": 312, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2767", "db_id": "election", "question": "For each delegate, find the names of the party they are part of.", "gold_sql": "SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID", "raw_output": "SELECT T1.Delegate, T2.Party FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID", "predicted_sql": "SELECT T1.Delegate, T2.Party FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID", "generation_status": "ok", "prompt_tokens": 313, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2768", "db_id": "election", "question": "Who were the governors of the parties associated with delegates from district 1?", "gold_sql": "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "raw_output": "SELECT T2.Governor FROM election AS T1 INNER JOIN party AS T3 ON T1.Party = T3.Party_ID WHERE T1.District = 1", "predicted_sql": "SELECT T2.Governor FROM election AS T1 INNER JOIN party AS T3 ON T1.Party = T3.Party_ID WHERE T1.District = 1", "generation_status": "ok", "prompt_tokens": 313, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Governor", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2780", "db_id": "election", "question": "Return the names of all counties sorted by county name in descending alphabetical order.", "gold_sql": "SELECT County_name FROM county ORDER BY County_name DESC", "raw_output": "SELECT County_name FROM county ORDER BY County_name DESC", "predicted_sql": "SELECT County_name FROM county ORDER BY County_name DESC", "generation_status": "ok", "prompt_tokens": 313, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2783", "db_id": "election", "question": "Which county has the largest population? Give me the name of the county.", "gold_sql": "SELECT County_name FROM county ORDER BY Population DESC LIMIT 1", "raw_output": "SELECT T1.County_name FROM county AS T1 ORDER BY T1.Population DESC LIMIT 1", "predicted_sql": "SELECT T1.County_name FROM county AS T1 ORDER BY T1.Population DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 313, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2745", "db_id": "election", "question": "What is the zip code the county named \"Howard\" is located in?", "gold_sql": "SELECT Zip_code FROM county WHERE County_name = \"Howard\"", "raw_output": "SELECT T1.Zip_code FROM county AS T1 WHERE T1.County_name = 'Howard'", "predicted_sql": "SELECT T1.Zip_code FROM county AS T1 WHERE T1.County_name = 'Howard'", "generation_status": "ok", "prompt_tokens": 313, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2776", "db_id": "election", "question": "Show the name of each party and the corresponding number of delegates from that party.", "gold_sql": "SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party", "raw_output": "SELECT T2.Party, COUNT(T1.Delegate) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party", "predicted_sql": "SELECT T2.Party, COUNT(T1.Delegate) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party", "generation_status": "ok", "prompt_tokens": 314, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2759", "db_id": "election", "question": "What are the delegate and name of the county they belong to, for each county?", "gold_sql": "SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District", "raw_output": "SELECT T1.County_name, T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District", "predicted_sql": "SELECT T1.County_name, T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District", "generation_status": "ok", "prompt_tokens": 315, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2798", "db_id": "election", "question": "What are the names of parties that have both delegates on \"Appropriations\" committee and", "gold_sql": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Economic Matters\"", "raw_output": "SELECT T1.Party\nFROM party AS T1\nINNER JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Committee = 'Appropriations'\nGROUP BY T1.Party\nHAVING COUNT(DISTINCT T2.Delegate) > 1", "predicted_sql": "SELECT T1.Party\nFROM party AS T1\nINNER JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Committee = 'Appropriations'\nGROUP BY T1.Party\nHAVING COUNT(DISTINCT T2.Delegate) > 1", "generation_status": "ok", "prompt_tokens": 315, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2801", "db_id": "election", "question": "Find the committees that have delegates both from from the democratic party and the liberal party.", "gold_sql": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Liberal\"", "raw_output": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic' INTERSECT SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Liberal'", "predicted_sql": "SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Democratic' INTERSECT SELECT T1.Committee FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = 'Liberal'", "generation_status": "ok", "prompt_tokens": 315, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2760", "db_id": "election", "question": "Which delegates are from counties with population smaller than 100000?", "gold_sql": "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000", "raw_output": "SELECT T1.Delegate FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population < 100000", "predicted_sql": "SELECT T1.Delegate FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population < 100000", "generation_status": "ok", "prompt_tokens": 315, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2774", "db_id": "election", "question": "Show the name of each county along with the corresponding number of delegates from that county.", "gold_sql": "SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id", "raw_output": "SELECT T1.County_name, COUNT(T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name", "predicted_sql": "SELECT T1.County_name, COUNT(T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name", "generation_status": "ok", "prompt_tokens": 315, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2762", "db_id": "election", "question": "How many distinct delegates are from counties with population larger than 50000?", "gold_sql": "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000", "raw_output": "SELECT count(DISTINCT T1.Delegate) FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population > 50000", "predicted_sql": "SELECT count(DISTINCT T1.Delegate) FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population > 50000", "generation_status": "ok", "prompt_tokens": 316, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2761", "db_id": "election", "question": "Find the delegates who are from counties with population below 100000.", "gold_sql": "SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000", "raw_output": "SELECT T1.Delegate FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population < 100000", "predicted_sql": "SELECT T1.Delegate FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population < 100000", "generation_status": "ok", "prompt_tokens": 316, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2794", "db_id": "election", "question": "Show the people that have been comptroller the most times and the corresponding number of times.", "gold_sql": "SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T1.Comptroller, count(*) AS times\nFROM party AS T1\nGROUP BY T1.Comptroller\nORDER BY times DESC\nLIMIT 1", "predicted_sql": "SELECT T1.Comptroller, count(*) AS times\nFROM party AS T1\nGROUP BY T1.Comptroller\nORDER BY times DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 316, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2785", "db_id": "election", "question": "What are the 3 counties that have the smallest population? Give me the county names.", "gold_sql": "SELECT County_name FROM county ORDER BY Population ASC LIMIT 3", "raw_output": "SELECT County_name FROM county ORDER BY Population LIMIT 3", "predicted_sql": "SELECT County_name FROM county ORDER BY Population LIMIT 3", "generation_status": "ok", "prompt_tokens": 316, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2777", "db_id": "election", "question": "For each party, return the name of the party and the number of delegates from that party.", "gold_sql": "SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party", "raw_output": "SELECT T2.Party, count(T1.Election_ID) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party", "predicted_sql": "SELECT T2.Party, count(T1.Election_ID) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party", "generation_status": "ok", "prompt_tokens": 317, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2764", "db_id": "election", "question": "What are the names of the county that the delegates on \"Appropriations\" committee belong to?", "gold_sql": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = \"Appropriations\"", "raw_output": "SELECT T1.County_name FROM county AS T1 INNER JOIN election AS T2 ON T1.County_Id = T2.District WHERE T2.Committee = 'Appropriations'", "predicted_sql": "SELECT T1.County_name FROM county AS T1 INNER JOIN election AS T2 ON T1.County_Id = T2.District WHERE T2.Committee = 'Appropriations'", "generation_status": "ok", "prompt_tokens": 317, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2775", "db_id": "election", "question": "For each county, find the name of the county and the number of delegates from that county.", "gold_sql": "SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id", "raw_output": "SELECT T1.County_name, COUNT(T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name", "predicted_sql": "SELECT T1.County_name, COUNT(T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_name", "generation_status": "ok", "prompt_tokens": 317, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2799", "db_id": "election", "question": "Which parties have delegates in both the \"Appropriations\" committee and the \"Economic Matters\" committee?", "gold_sql": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Economic Matters\"", "raw_output": "SELECT T1.Party\nFROM party AS T1\nINNER JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Committee = 'Appropriations'\nINTERSECT\nSELECT T1.Party\nFROM party AS T1\nINNER JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Committee = 'Economic Matters'", "predicted_sql": "SELECT T1.Party\nFROM party AS T1\nINNER JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Committee = 'Appropriations'\nINTERSECT\nSELECT T1.Party\nFROM party AS T1\nINNER JOIN election AS T2 ON T1.Party_ID = T2.Party\nWHERE T2.Committee = 'Economic Matters'", "generation_status": "ok", "prompt_tokens": 318, "generated_tokens": 88, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2763", "db_id": "election", "question": "Count the number of distinct delegates who are from counties with population above 50000.", "gold_sql": "SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000", "raw_output": "SELECT count(DISTINCT T1.Delegate) FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population > 50000", "predicted_sql": "SELECT count(DISTINCT T1.Delegate) FROM election AS T1 INNER JOIN county AS T2 ON T1.District = T2.County_Id WHERE T2.Population > 50000", "generation_status": "ok", "prompt_tokens": 318, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2769", "db_id": "election", "question": "Find the parties associated with the delegates from district 1. Who served as governors of the parties?", "gold_sql": "SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "raw_output": "SELECT T2.Party FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "predicted_sql": "SELECT T2.Party FROM election AS T1 INNER JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1", "generation_status": "ok", "prompt_tokens": 318, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2765", "db_id": "election", "question": "Which county do the delegates on \"Appropriations\" committee belong to? Give me the county names.", "gold_sql": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = \"Appropriations\"", "raw_output": "SELECT T1.County_name FROM county AS T1 INNER JOIN election AS T2 ON T1.County_Id = T2.District WHERE T2.Committee = 'Appropriations'", "predicted_sql": "SELECT T1.County_name FROM county AS T1 INNER JOIN election AS T2 ON T1.County_Id = T2.District WHERE T2.Committee = 'Appropriations'", "generation_status": "ok", "prompt_tokens": 318, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2770", "db_id": "election", "question": "Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?", "gold_sql": "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2", "raw_output": "SELECT T2.Comptroller FROM election AS T1 INNER JOIN party AS T3 ON T1.Party = T3.Party_ID INNER JOIN party AS T2 ON T3.Party = T2.Party_ID WHERE T1.District IN (1, 2)", "predicted_sql": "SELECT T2.Comptroller FROM election AS T1 INNER JOIN party AS T3 ON T1.Party = T3.Party_ID INNER JOIN party AS T2 ON T3.Party = T2.Party_ID WHERE T1.District IN (1, 2)", "generation_status": "ok", "prompt_tokens": 319, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2795", "db_id": "election", "question": "Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.", "gold_sql": "SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT Comptroller, COUNT(*) FROM party WHERE Comptroller IS NOT NULL GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Comptroller, COUNT(*) FROM party WHERE Comptroller IS NOT NULL GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 319, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2771", "db_id": "election", "question": "Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?", "gold_sql": "SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2", "raw_output": "SELECT DISTINCT T2.Comptroller FROM election AS T1 JOIN party AS T3 ON T1.Party = T3.Party_ID JOIN party AS T2 ON T3.Party = T2.Party_ID WHERE T1.District IN (1, 2)", "predicted_sql": "SELECT DISTINCT T2.Comptroller FROM election AS T1 JOIN party AS T3 ON T1.Party = T3.Party_ID JOIN party AS T2 ON T3.Party = T2.Party_ID WHERE T1.District IN (1, 2)", "generation_status": "ok", "prompt_tokens": 322, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1070", "db_id": "match_season", "question": "Show all team names.", "gold_sql": "SELECT Name FROM Team", "raw_output": "SELECT Name FROM team", "predicted_sql": "SELECT Name FROM team", "generation_status": "ok", "prompt_tokens": 354, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1074", "db_id": "match_season", "question": "Which players are from Indonesia?", "gold_sql": "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = \"Indonesia\"", "raw_output": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player JOIN country AS T3 ON T2.Country = T3.Country_id WHERE T3.Country_name = 'Indonesia'", "predicted_sql": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player JOIN country AS T3 ON T2.Country = T3.Country_id WHERE T3.Country_name = 'Indonesia'", "generation_status": "ok", "prompt_tokens": 355, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1053", "db_id": "match_season", "question": "Count the number of countries.", "gold_sql": "SELECT count(*) FROM country", "raw_output": "SELECT count(*) FROM country", "predicted_sql": "SELECT count(*) FROM country", "generation_status": "ok", "prompt_tokens": 355, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1060", "db_id": "match_season", "question": "Show the players from college UCLA.", "gold_sql": "SELECT Player FROM match_season WHERE College = \"UCLA\"", "raw_output": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player WHERE T2.College = 'UCLA'", "predicted_sql": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player WHERE T2.College = 'UCLA'", "generation_status": "ok", "prompt_tokens": 356, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1091", "db_id": "match_season", "question": "How many players played each position?", "gold_sql": "SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION", "raw_output": "SELECT COUNT(T1.Player) FROM player AS T1 JOIN match_season AS T2 ON T1.Player = T2.Player GROUP BY T2.Position", "predicted_sql": "SELECT COUNT(T1.Player) FROM player AS T1 JOIN match_season AS T2 ON T1.Player = T2.Player GROUP BY T2.Position", "generation_status": "ok", "prompt_tokens": 356, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1061", "db_id": "match_season", "question": "Who are the players from UCLA?", "gold_sql": "SELECT Player FROM match_season WHERE College = \"UCLA\"", "raw_output": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player WHERE T2.College = 'UCLA'", "predicted_sql": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player WHERE T2.College = 'UCLA'", "generation_status": "ok", "prompt_tokens": 356, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1075", "db_id": "match_season", "question": "Who are the players from Indonesia?", "gold_sql": "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = \"Indonesia\"", "raw_output": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player JOIN country AS T3 ON T2.Country = T3.Country_id WHERE T3.Country_name = 'Indonesia'", "predicted_sql": "SELECT T1.Player FROM player AS T1 INNER JOIN match_season AS T2 ON T1.Player = T2.Player JOIN country AS T3 ON T2.Country = T3.Country_id WHERE T3.Country_name = 'Indonesia'", "generation_status": "ok", "prompt_tokens": 356, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1058", "db_id": "match_season", "question": "Show all distinct positions of matches.", "gold_sql": "SELECT DISTINCT POSITION FROM match_season", "raw_output": "SELECT DISTINCT Position FROM match_season", "predicted_sql": "SELECT DISTINCT Position FROM match_season", "generation_status": "ok", "prompt_tokens": 356, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1052", "db_id": "match_season", "question": "How many countries are there in total?", "gold_sql": "SELECT count(*) FROM country", "raw_output": "SELECT COUNT(*) FROM country", "predicted_sql": "SELECT COUNT(*) FROM country", "generation_status": "ok", "prompt_tokens": 357, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1071", "db_id": "match_season", "question": "What are the names of all teams?", "gold_sql": "SELECT Name FROM Team", "raw_output": "SELECT Name FROM team", "predicted_sql": "SELECT Name FROM team", "generation_status": "ok", "prompt_tokens": 357, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1093", "db_id": "match_season", "question": "How many players are from each country?", "gold_sql": "SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name", "raw_output": "SELECT T1.Country_name, count(T2.Player_ID) FROM country AS T1 JOIN match_season AS T3 ON T1.Country_id = T3.Country GROUP BY T1.Country_name", "predicted_sql": "SELECT T1.Country_name, count(T2.Player_ID) FROM country AS T1 JOIN match_season AS T3 ON T1.Country_id = T3.Country GROUP BY T1.Country_name", "generation_status": "ok", "prompt_tokens": 357, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Player_ID", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1068", "db_id": "match_season", "question": "Show the players and the years played.", "gold_sql": "SELECT Player , Years_Played FROM player", "raw_output": "SELECT T1.Player, T1.Years_Played FROM player AS T1", "predicted_sql": "SELECT T1.Player, T1.Years_Played FROM player AS T1", "generation_status": "ok", "prompt_tokens": 357, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1059", "db_id": "match_season", "question": "What are the different positions for match season?", "gold_sql": "SELECT DISTINCT POSITION FROM match_season", "raw_output": "SELECT DISTINCT Position FROM match_season", "predicted_sql": "SELECT DISTINCT Position FROM match_season", "generation_status": "ok", "prompt_tokens": 358, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1055", "db_id": "match_season", "question": "What are the names and capitals of each country?", "gold_sql": "SELECT Country_name , Capital FROM country", "raw_output": "SELECT Country_name, Capital FROM country", "predicted_sql": "SELECT Country_name, Capital FROM country", "generation_status": "ok", "prompt_tokens": 359, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1054", "db_id": "match_season", "question": "Show the country name and capital of all countries.", "gold_sql": "SELECT Country_name , Capital FROM country", "raw_output": "SELECT Country_name, Capital FROM country", "predicted_sql": "SELECT Country_name, Capital FROM country", "generation_status": "ok", "prompt_tokens": 359, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1066", "db_id": "match_season", "question": "How many distinct teams are involved in match seasons?", "gold_sql": "SELECT count(DISTINCT Team) FROM match_season", "raw_output": "SELECT COUNT(DISTINCT Team) FROM match_season", "predicted_sql": "SELECT COUNT(DISTINCT Team) FROM match_season", "generation_status": "ok", "prompt_tokens": 359, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1092", "db_id": "match_season", "question": "Show the country names and the corresponding number of players.", "gold_sql": "SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name", "raw_output": "SELECT T1.Country_name, COUNT(T2.Player) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name", "predicted_sql": "SELECT T1.Country_name, COUNT(T2.Player) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name", "generation_status": "ok", "prompt_tokens": 360, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1067", "db_id": "match_season", "question": "Count the number of different teams involved in match season.", "gold_sql": "SELECT count(DISTINCT Team) FROM match_season", "raw_output": "SELECT count(DISTINCT Team) FROM match_season", "predicted_sql": "SELECT count(DISTINCT Team) FROM match_season", "generation_status": "ok", "prompt_tokens": 360, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1096", "db_id": "match_season", "question": "Show the most common position of players in match seasons.", "gold_sql": "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Position FROM match_season GROUP BY Position ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Position FROM match_season GROUP BY Position ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 360, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1094", "db_id": "match_season", "question": "Return all players sorted by college in ascending alphabetical order.", "gold_sql": "SELECT player FROM match_season ORDER BY College ASC", "raw_output": "SELECT T1.Player FROM player AS T1 ORDER BY T1.College;", "predicted_sql": "SELECT T1.Player FROM player AS T1 ORDER BY T1.College;", "generation_status": "ok", "prompt_tokens": 360, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.College", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1062", "db_id": "match_season", "question": "Show the distinct position of players from college UCLA or Duke.", "gold_sql": "SELECT DISTINCT POSITION FROM match_season WHERE College = \"UCLA\" OR College = \"Duke\"", "raw_output": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN college AS T2 ON T1.College = T2.College WHERE T2.College = 'UCLA' OR T2.College = 'Duke'", "predicted_sql": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN college AS T2 ON T1.College = T2.College WHERE T2.College = 'UCLA' OR T2.College = 'Duke'", "generation_status": "ok", "prompt_tokens": 361, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: college", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1105", "db_id": "match_season", "question": "Return the names of teams that have no match season record.", "gold_sql": "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)", "raw_output": "SELECT T1.Name FROM team AS T1 LEFT JOIN match_season AS T2 ON T1.Team_id = T2.Team\nWHERE T2.Season IS NULL", "predicted_sql": "SELECT T1.Name FROM team AS T1 LEFT JOIN match_season AS T2 ON T1.Team_id = T2.Team\nWHERE T2.Season IS NULL", "generation_status": "ok", "prompt_tokens": 361, "generated_tokens": 39, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1090", "db_id": "match_season", "question": "Show the position of players and the corresponding number of players.", "gold_sql": "SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION", "raw_output": "SELECT T1.Position, COUNT(T1.Player) FROM match_season AS T1 GROUP BY T1.Position", "predicted_sql": "SELECT T1.Position, COUNT(T1.Player) FROM match_season AS T1 GROUP BY T1.Position", "generation_status": "ok", "prompt_tokens": 361, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1100", "db_id": "match_season", "question": "Show the name of colleges that have at least two players.", "gold_sql": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2", "raw_output": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2", "predicted_sql": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 361, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1056", "db_id": "match_season", "question": "Show all official native languages that contain the word \"English\".", "gold_sql": "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"", "raw_output": "SELECT T1.Official_native_language FROM country AS T1 WHERE T1.Official_native_language LIKE '%English%'", "predicted_sql": "SELECT T1.Official_native_language FROM country AS T1 WHERE T1.Official_native_language LIKE '%English%'", "generation_status": "ok", "prompt_tokens": 361, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1099", "db_id": "match_season", "question": "What are the three colleges from which the most players are from?", "gold_sql": "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3", "raw_output": "SELECT College FROM match_season GROUP BY College ORDER BY COUNT(*) DESC LIMIT 3", "predicted_sql": "SELECT College FROM match_season GROUP BY College ORDER BY COUNT(*) DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 362, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1063", "db_id": "match_season", "question": "What are the different positions of players from UCLA or Duke colleges?", "gold_sql": "SELECT DISTINCT POSITION FROM match_season WHERE College = \"UCLA\" OR College = \"Duke\"", "raw_output": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.College IN ('UCLA', 'Duke')", "predicted_sql": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.College IN ('UCLA', 'Duke')", "generation_status": "ok", "prompt_tokens": 362, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1057", "db_id": "match_season", "question": "What are the official native languages that contain the string \"English\".", "gold_sql": "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"", "raw_output": "SELECT T1.Official_native_language FROM country AS T1 WHERE T1.Official_native_language LIKE '%English%';", "predicted_sql": "SELECT T1.Official_native_language FROM country AS T1 WHERE T1.Official_native_language LIKE '%English%';", "generation_status": "ok", "prompt_tokens": 362, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1069", "db_id": "match_season", "question": "Who are the different players and how many years has each played?", "gold_sql": "SELECT Player , Years_Played FROM player", "raw_output": "SELECT T1.Player, T1.Years_Played FROM player AS T1", "predicted_sql": "SELECT T1.Player, T1.Years_Played FROM player AS T1", "generation_status": "ok", "prompt_tokens": 362, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1101", "db_id": "match_season", "question": "What are the names of all colleges that have two or more players?", "gold_sql": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2", "raw_output": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2", "predicted_sql": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1108", "db_id": "match_season", "question": "Which college have both players with position midfielder and players with position defender?", "gold_sql": "SELECT College FROM match_season WHERE POSITION = \"Midfielder\" INTERSECT SELECT College FROM match_season WHERE POSITION = \"Defender\"", "raw_output": "SELECT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'midfielder' INTERSECT SELECT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'defender'", "predicted_sql": "SELECT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'midfielder' INTERSECT SELECT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'defender'", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 79, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1097", "db_id": "match_season", "question": "What is the position that is most common among players in match seasons?", "gold_sql": "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Position FROM match_season GROUP BY Position ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Position FROM match_season GROUP BY Position ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1098", "db_id": "match_season", "question": "Show the top 3 most common colleges of players in match seasons.", "gold_sql": "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3", "raw_output": "SELECT T1.College, COUNT(*) AS college_count FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College ORDER BY college_count DESC LIMIT 3", "predicted_sql": "SELECT T1.College, COUNT(*) AS college_count FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College ORDER BY college_count DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1085", "db_id": "match_season", "question": "Return the positions of players on the team Ryley Goldner.", "gold_sql": "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Ryley Goldner\"", "raw_output": "SELECT T1.Position FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Ryley Goldner'", "predicted_sql": "SELECT T1.Position FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Ryley Goldner'", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1104", "db_id": "match_season", "question": "What are the names of teams that do no have match season record?", "gold_sql": "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)", "raw_output": "SELECT T1.Name FROM team AS T1 LEFT JOIN match_season AS T2 ON T1.Team_id = T2.Team WHERE T2.Season IS NULL", "predicted_sql": "SELECT T1.Name FROM team AS T1 LEFT JOIN match_season AS T2 ON T1.Team_id = T2.Team WHERE T2.Season IS NULL", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1088", "db_id": "match_season", "question": "Show the players and years played for players from team \"Columbus Crew\".", "gold_sql": "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "raw_output": "SELECT T1.Player, T1.Years_Played FROM player AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "predicted_sql": "SELECT T1.Player, T1.Years_Played FROM player AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "generation_status": "ok", "prompt_tokens": 363, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1064", "db_id": "match_season", "question": "Show the draft pick numbers and draft classes of players whose positions are defenders.", "gold_sql": "SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = \"Defender\"", "raw_output": "SELECT T1.Draft_Pick_Number, T1.Draft_Class FROM match_season AS T1 WHERE T1.Position = 'defenders'", "predicted_sql": "SELECT T1.Draft_Pick_Number, T1.Draft_Class FROM match_season AS T1 WHERE T1.Position = 'defenders'", "generation_status": "ok", "prompt_tokens": 364, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1080", "db_id": "match_season", "question": "How many distinct official languages are there among countries of players whose positions are defenders.", "gold_sql": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "raw_output": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'defenders'", "predicted_sql": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'defenders'", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1076", "db_id": "match_season", "question": "What are the distinct positions of the players from a country whose capital is Dublin?", "gold_sql": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = \"Dublin\"", "raw_output": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Country_id WHERE T2.Capital = 'Dublin'", "predicted_sql": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Country_id WHERE T2.Capital = 'Dublin'", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1079", "db_id": "match_season", "question": "Return the official native languages of countries who have players from Maryland or Duke colleges.", "gold_sql": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = \"Maryland\" OR T2.College = \"Duke\"", "raw_output": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = 'Maryland' OR T2.College = 'Duke'", "predicted_sql": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = 'Maryland' OR T2.College = 'Duke'", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1087", "db_id": "match_season", "question": "Count the number of different colleges that players who play for Columbus Crew are from.", "gold_sql": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "raw_output": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "predicted_sql": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1078", "db_id": "match_season", "question": "What are the official languages of the countries of players from Maryland or Duke college?", "gold_sql": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = \"Maryland\" OR T2.College = \"Duke\"", "raw_output": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College IN ('Maryland', 'Duke')", "predicted_sql": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College IN ('Maryland', 'Duke')", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1102", "db_id": "match_season", "question": "Show the name of colleges that have at least two players in descending alphabetical order.", "gold_sql": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC", "raw_output": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2 ORDER BY T1.College DESC", "predicted_sql": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2 ORDER BY T1.College DESC", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1077", "db_id": "match_season", "question": "Give the different positions of players who play for the country with the capital Dublin.", "gold_sql": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = \"Dublin\"", "raw_output": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Country_id WHERE T2.Capital = 'Dublin'", "predicted_sql": "SELECT DISTINCT T1.Position FROM match_season AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Country_id WHERE T2.Capital = 'Dublin'", "generation_status": "ok", "prompt_tokens": 365, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1086", "db_id": "match_season", "question": "How many distinct colleges are associated with players from the team with name \"Columbus Crew\".", "gold_sql": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "raw_output": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "predicted_sql": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "generation_status": "ok", "prompt_tokens": 366, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1065", "db_id": "match_season", "question": "What are the draft pick numbers and draft classes for players who play the Defender position?", "gold_sql": "SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = \"Defender\"", "raw_output": "SELECT T1.Draft_Pick_Number, T1.Draft_Class FROM match_season AS T1 WHERE T1.Position = 'Defender'", "predicted_sql": "SELECT T1.Draft_Pick_Number, T1.Draft_Class FROM match_season AS T1 WHERE T1.Position = 'Defender'", "generation_status": "ok", "prompt_tokens": 366, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1072", "db_id": "match_season", "question": "Show the season, the player, and the name of the country that player belongs to.", "gold_sql": "SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country", "raw_output": "SELECT T1.Season, T1.Player, T2.Country_name FROM match_season AS T1 JOIN country AS T2 ON T1.Country = T2.Country_id", "predicted_sql": "SELECT T1.Season, T1.Player, T2.Country_name FROM match_season AS T1 JOIN country AS T2 ON T1.Country = T2.Country_id", "generation_status": "ok", "prompt_tokens": 367, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1073", "db_id": "match_season", "question": "For each player, what are their name, season, and country that they belong to?", "gold_sql": "SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country", "raw_output": "SELECT T1.Player, T2.Season, T1.Country FROM player AS T1 JOIN match_season AS T2 ON T1.Player = T2.Player JOIN country AS T3 ON T2.Country = T3.Country_id", "predicted_sql": "SELECT T1.Player, T2.Season, T1.Country FROM player AS T1 JOIN match_season AS T2 ON T1.Player = T2.Player JOIN country AS T3 ON T2.Country = T3.Country_id", "generation_status": "ok", "prompt_tokens": 367, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.Country", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1081", "db_id": "match_season", "question": "Count the number of different official languages corresponding to countries that players who play Defender are from.", "gold_sql": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "raw_output": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 INNER JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'Defender'", "predicted_sql": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 INNER JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'Defender'", "generation_status": "ok", "prompt_tokens": 367, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1082", "db_id": "match_season", "question": "Show the season, the player, and the name of the team that players belong to.", "gold_sql": "SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id", "raw_output": "SELECT T1.Season, T1.Player, T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id", "predicted_sql": "SELECT T1.Season, T1.Player, T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id", "generation_status": "ok", "prompt_tokens": 367, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1084", "db_id": "match_season", "question": "Show the positions of the players from the team with name \"Ryley Goldner\".", "gold_sql": "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Ryley Goldner\"", "raw_output": "SELECT T1.Position FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Ryley Goldner'", "predicted_sql": "SELECT T1.Position FROM match_season AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Ryley Goldner'", "generation_status": "ok", "prompt_tokens": 367, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1106", "db_id": "match_season", "question": "What are the names of countries that have both players with position forward and players with position defender?", "gold_sql": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "raw_output": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'forward' INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'defender'", "predicted_sql": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'forward' INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'defender'", "generation_status": "ok", "prompt_tokens": 368, "generated_tokens": 84, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1103", "db_id": "match_season", "question": "What are the names of colleges that have two or more players, listed in descending alphabetical order?", "gold_sql": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC", "raw_output": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2 ORDER BY T1.College DESC", "predicted_sql": "SELECT T1.College FROM match_season AS T1 JOIN player AS T2 ON T1.Player = T2.Player GROUP BY T1.College HAVING count(*) >= 2 ORDER BY T1.College DESC", "generation_status": "ok", "prompt_tokens": 368, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1095", "db_id": "match_season", "question": "What are all the players who played in match season, sorted by college in ascending alphabetical order?", "gold_sql": "SELECT player FROM match_season ORDER BY College ASC", "raw_output": "SELECT T1.Player FROM match_season AS T2 JOIN player AS T1 ON T2.Player = T1.Player ORDER BY T2.College;", "predicted_sql": "SELECT T1.Player FROM match_season AS T2 JOIN player AS T1 ON T2.Player = T1.Player ORDER BY T2.College;", "generation_status": "ok", "prompt_tokens": 368, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1089", "db_id": "match_season", "question": "What are the players who played for Columbus Crew, and how many years did each play for?", "gold_sql": "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "raw_output": "SELECT T1.Player, T1.Years_Played FROM player AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "predicted_sql": "SELECT T1.Player, T1.Years_Played FROM player AS T1 INNER JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = 'Columbus Crew'", "generation_status": "ok", "prompt_tokens": 368, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1109", "db_id": "match_season", "question": "Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position.", "gold_sql": "SELECT College FROM match_season WHERE POSITION = \"Midfielder\" INTERSECT SELECT College FROM match_season WHERE POSITION = \"Defender\"", "raw_output": "SELECT DISTINCT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'Midfielder'\nUNION\nSELECT DISTINCT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'Defender'", "predicted_sql": "SELECT DISTINCT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'Midfielder'\nUNION\nSELECT DISTINCT T1.College FROM match_season AS T1 INNER JOIN player AS T2 ON T1.Player = T2.Player WHERE T1.Position = 'Defender'", "generation_status": "ok", "prompt_tokens": 372, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1107", "db_id": "match_season", "question": "Return the names of countries that have players that play the Forward position, as well as players who play the Defender position.", "gold_sql": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "raw_output": "SELECT DISTINCT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'Forward'\nUNION\nSELECT DISTINCT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'Defender'", "predicted_sql": "SELECT DISTINCT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'Forward'\nUNION\nSELECT DISTINCT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = 'Defender'", "generation_status": "ok", "prompt_tokens": 373, "generated_tokens": 86, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1083", "db_id": "match_season", "question": "Who are the different players, what season do they play in, and what is the name of the team they are on?", "gold_sql": "SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id", "raw_output": "SELECT T1.Player, T2.Season, T3.Name FROM player AS T1 JOIN match_season AS T2 ON T1.Player = T2.Player JOIN team AS T3 ON T2.Team = T3.Team_id", "predicted_sql": "SELECT T1.Player, T2.Season, T3.Name FROM player AS T1 JOIN match_season AS T2 ON T1.Player = T2.Player JOIN team AS T3 ON T2.Team = T3.Team_id", "generation_status": "ok", "prompt_tokens": 374, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2327", "db_id": "csu_1", "question": "What campuses are located in Chico?", "gold_sql": "SELECT campus FROM campuses WHERE LOCATION = \"Chico\"", "raw_output": "SELECT Campus FROM Campuses WHERE Location = 'Chico'", "predicted_sql": "SELECT Campus FROM Campuses WHERE Location = 'Chico'", "generation_status": "ok", "prompt_tokens": 416, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2392", "db_id": "csu_1", "question": "How many CSU campuses are there?", "gold_sql": "SELECT count(*) FROM campuses", "raw_output": "SELECT COUNT(*) FROM Campuses", "predicted_sql": "SELECT COUNT(*) FROM Campuses", "generation_status": "ok", "prompt_tokens": 416, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2366", "db_id": "csu_1", "question": "List the campuses in Los Angeles county.", "gold_sql": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "generation_status": "ok", "prompt_tokens": 417, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2367", "db_id": "csu_1", "question": "What campuses are in Los Angeles county?", "gold_sql": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "generation_status": "ok", "prompt_tokens": 417, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2346", "db_id": "csu_1", "question": "Which year has the most degrees conferred?", "gold_sql": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1", "raw_output": "SELECT Year FROM degrees ORDER BY Degrees DESC LIMIT 1", "predicted_sql": "SELECT Year FROM degrees ORDER BY Degrees DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 417, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2393", "db_id": "csu_1", "question": "What is the total number of campuses?", "gold_sql": "SELECT count(*) FROM campuses", "raw_output": "SELECT COUNT(*) FROM Campuses", "predicted_sql": "SELECT COUNT(*) FROM Campuses", "generation_status": "ok", "prompt_tokens": 417, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2385", "db_id": "csu_1", "question": "How many undergraduates are there at San Jose State", "gold_sql": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", "raw_output": "SELECT SUM(T1.Undergraduate) FROM discipline_enrollments AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State'", "predicted_sql": "SELECT SUM(T1.Undergraduate) FROM discipline_enrollments AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State'", "generation_status": "ok", "prompt_tokens": 418, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2347", "db_id": "csu_1", "question": "In what year was the most degrees conferred?", "gold_sql": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY sum(degrees) DESC LIMIT 1", "raw_output": "SELECT T1.Year FROM degrees AS T1 ORDER BY T1.Degrees DESC LIMIT 1", "predicted_sql": "SELECT T1.Year FROM degrees AS T1 ORDER BY T1.Degrees DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 418, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2364", "db_id": "csu_1", "question": "How many campuses are there in Los Angeles county?", "gold_sql": "SELECT count(*) FROM campuses WHERE county = \"Los Angeles\"", "raw_output": "SELECT COUNT(DISTINCT T1.Id) FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "predicted_sql": "SELECT COUNT(DISTINCT T1.Id) FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "generation_status": "ok", "prompt_tokens": 419, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2331", "db_id": "csu_1", "question": "What campuses opened before 1800?", "gold_sql": "SELECT campus FROM campuses WHERE YEAR < 1800", "raw_output": "SELECT Campus FROM Campuses WHERE Year < 1800", "predicted_sql": "SELECT Campus FROM Campuses WHERE Year < 1800", "generation_status": "ok", "prompt_tokens": 419, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2325", "db_id": "csu_1", "question": "What campuses are located in the county of Los Angeles?", "gold_sql": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles'", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 420, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2326", "db_id": "csu_1", "question": "What are the names of all campuses located at Chico?", "gold_sql": "SELECT campus FROM campuses WHERE LOCATION = \"Chico\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.Location = 'Chico'", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.Location = 'Chico'", "generation_status": "ok", "prompt_tokens": 420, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2341", "db_id": "csu_1", "question": "How many universities have a campus fee higher than average?", "gold_sql": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "raw_output": "SELECT count(*) FROM csu_fees WHERE CampusFee > (SELECT AVG(CampusFee) FROM csu_fees);", "predicted_sql": "SELECT count(*) FROM csu_fees WHERE CampusFee > (SELECT AVG(CampusFee) FROM csu_fees);", "generation_status": "ok", "prompt_tokens": 420, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2324", "db_id": "csu_1", "question": "Report the name of all campuses in Los Angeles county.", "gold_sql": "SELECT campus FROM campuses WHERE county = \"Los Angeles\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles';", "generation_status": "ok", "prompt_tokens": 420, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2365", "db_id": "csu_1", "question": "How many campuses exist are in the county of LA?", "gold_sql": "SELECT count(*) FROM campuses WHERE county = \"Los Angeles\"", "raw_output": "SELECT COUNT(DISTINCT T1.Id) FROM Campuses AS T1 WHERE T1.County = 'LA'", "predicted_sql": "SELECT COUNT(DISTINCT T1.Id) FROM Campuses AS T1 WHERE T1.County = 'LA'", "generation_status": "ok", "prompt_tokens": 420, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2348", "db_id": "csu_1", "question": "Which campus has the most degrees conferred in all times?", "gold_sql": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 JOIN degrees AS T2 ON T1.Id = T2.Campus GROUP BY T1.Campus ORDER BY SUM(T2.Degrees) DESC LIMIT 1", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 JOIN degrees AS T2 ON T1.Id = T2.Campus GROUP BY T1.Campus ORDER BY SUM(T2.Degrees) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 420, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2343", "db_id": "csu_1", "question": "How many universities have a campus fee greater than the average?", "gold_sql": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "raw_output": "SELECT COUNT(T1.Campus) FROM csu_fees AS T1 JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.CampusFee > (SELECT AVG(CampusFee) FROM csu_fees);", "predicted_sql": "SELECT COUNT(T1.Campus) FROM csu_fees AS T1 JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.CampusFee > (SELECT AVG(CampusFee) FROM csu_fees);", "generation_status": "ok", "prompt_tokens": 421, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2328", "db_id": "csu_1", "question": "Find all the campuses opened in 1958.", "gold_sql": "SELECT campus FROM campuses WHERE YEAR = 1958", "raw_output": "SELECT Campus FROM Campuses WHERE Year = 1958", "predicted_sql": "SELECT Campus FROM Campuses WHERE Year = 1958", "generation_status": "ok", "prompt_tokens": 421, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2329", "db_id": "csu_1", "question": "What are the campuses that opened in 1958?", "gold_sql": "SELECT campus FROM campuses WHERE YEAR = 1958", "raw_output": "SELECT Campus FROM Campuses WHERE Year = 1958", "predicted_sql": "SELECT Campus FROM Campuses WHERE Year = 1958", "generation_status": "ok", "prompt_tokens": 422, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2351", "db_id": "csu_1", "question": "What campus has the most faculties in 2003?", "gold_sql": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1", "raw_output": "SELECT T1.Campus FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2003 ORDER BY T1.Faculty DESC LIMIT 1", "predicted_sql": "SELECT T1.Campus FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2003 ORDER BY T1.Faculty DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 422, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2330", "db_id": "csu_1", "question": "Find the name of the campuses opened before 1800.", "gold_sql": "SELECT campus FROM campuses WHERE YEAR < 1800", "raw_output": "SELECT Campus FROM Campuses WHERE Year < 1800", "predicted_sql": "SELECT Campus FROM Campuses WHERE Year < 1800", "generation_status": "ok", "prompt_tokens": 423, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2350", "db_id": "csu_1", "question": "Which campus has the most faculties in year 2003?", "gold_sql": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1", "raw_output": "SELECT T1.Campus FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2003 ORDER BY T1.Faculty DESC LIMIT 1", "predicted_sql": "SELECT T1.Campus FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2003 ORDER BY T1.Faculty DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 423, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2352", "db_id": "csu_1", "question": "Find the average fee on a CSU campus in 1996", "gold_sql": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996", "raw_output": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 1996", "predicted_sql": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 1996", "generation_status": "ok", "prompt_tokens": 423, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2344", "db_id": "csu_1", "question": "Which university is in Los Angeles county and opened after 1950?", "gold_sql": "SELECT campus FROM campuses WHERE county = \"Los Angeles\" AND YEAR > 1950", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles' AND T1.Year > 1950", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles' AND T1.Year > 1950", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2342", "db_id": "csu_1", "question": "Find the count of universities whose campus fee is greater than the average campus fee.", "gold_sql": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "raw_output": "SELECT count(*) FROM csu_fees WHERE CampusFee > (SELECT AVG(CampusFee) FROM csu_fees)", "predicted_sql": "SELECT count(*) FROM csu_fees WHERE CampusFee > (SELECT AVG(CampusFee) FROM csu_fees)", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2340", "db_id": "csu_1", "question": "Find the count of universities whose campus fee is greater than the average campus fee.", "gold_sql": "SELECT count(*) FROM csu_fees WHERE campusfee > (SELECT avg(campusfee) FROM csu_fees)", "raw_output": "SELECT count(*) FROM csu_fees WHERE CampusFee > (SELECT AVG(CampusFee) FROM csu_fees)", "predicted_sql": "SELECT count(*) FROM csu_fees WHERE CampusFee > (SELECT AVG(CampusFee) FROM csu_fees)", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2354", "db_id": "csu_1", "question": "What is the average fee on a CSU campus in 2005?", "gold_sql": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005", "raw_output": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2005", "predicted_sql": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2005", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2349", "db_id": "csu_1", "question": "What campus has the most degrees conferrred over its entire existence?", "gold_sql": "SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 JOIN degrees AS T2 ON T1.Id = T2.Campus GROUP BY T1.Campus ORDER BY SUM(T2.Degrees) DESC LIMIT 1", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 JOIN degrees AS T2 ON T1.Id = T2.Campus GROUP BY T1.Campus ORDER BY SUM(T2.Degrees) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2333", "db_id": "csu_1", "question": "What campuses opened between 1935 and 1939?", "gold_sql": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939", "raw_output": "SELECT Campus FROM Campuses WHERE Year BETWEEN 1935 AND 1939", "predicted_sql": "SELECT Campus FROM Campuses WHERE Year BETWEEN 1935 AND 1939", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2387", "db_id": "csu_1", "question": "How many people graduated from San Francisco State University in 2004?", "gold_sql": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", "raw_output": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "predicted_sql": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "generation_status": "ok", "prompt_tokens": 425, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2337", "db_id": "csu_1", "question": "What is the campus fee for San Jose State University in 1996?", "gold_sql": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 1996", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 1996", "generation_status": "ok", "prompt_tokens": 426, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2332", "db_id": "csu_1", "question": "Which campus was opened between 1935 and 1939?", "gold_sql": "SELECT campus FROM campuses WHERE YEAR >= 1935 AND YEAR <= 1939", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.Year BETWEEN 1935 AND 1939", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.Year BETWEEN 1935 AND 1939", "generation_status": "ok", "prompt_tokens": 426, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2345", "db_id": "csu_1", "question": "What campuses are located in Los Angeles county and opened after 1950?", "gold_sql": "SELECT campus FROM campuses WHERE county = \"Los Angeles\" AND YEAR > 1950", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles' AND T1.Year > 1950", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.County = 'Los Angeles' AND T1.Year > 1950", "generation_status": "ok", "prompt_tokens": 426, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2339", "db_id": "csu_1", "question": "What is the campus fee for San Francisco State University in 1996?", "gold_sql": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 1996", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 1996", "generation_status": "ok", "prompt_tokens": 426, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2372", "db_id": "csu_1", "question": "How many faculty is there in total in the year of 2002?", "gold_sql": "SELECT sum(faculty) FROM faculty WHERE YEAR = 2002", "raw_output": "SELECT SUM(T1.Faculty) FROM faculty AS T1 WHERE T1.Year = 2002", "predicted_sql": "SELECT SUM(T1.Faculty) FROM faculty AS T1 WHERE T1.Year = 2002", "generation_status": "ok", "prompt_tokens": 426, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2369", "db_id": "csu_1", "question": "How many degrees were conferred at San Jose State University in 2000?", "gold_sql": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", "raw_output": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "predicted_sql": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "generation_status": "ok", "prompt_tokens": 426, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2335", "db_id": "csu_1", "question": "What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?", "gold_sql": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.Location = 'Northridge, Los Angeles' OR T1.Location = 'San Francisco, San Francisco'", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 WHERE T1.Location = 'Northridge, Los Angeles' OR T1.Location = 'San Francisco, San Francisco'", "generation_status": "ok", "prompt_tokens": 427, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2371", "db_id": "csu_1", "question": "What degrees were conferred in San Francisco State University in the year 2001?", "gold_sql": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", "raw_output": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2001", "predicted_sql": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2001", "generation_status": "ok", "prompt_tokens": 427, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2357", "db_id": "csu_1", "question": "how many degrees were conferred between 1998 and 2002?", "gold_sql": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", "raw_output": "SELECT SUM(T1.Degrees) FROM degrees AS T1 WHERE T1.Year BETWEEN 1998 AND 2002", "predicted_sql": "SELECT SUM(T1.Degrees) FROM degrees AS T1 WHERE T1.Year BETWEEN 1998 AND 2002", "generation_status": "ok", "prompt_tokens": 427, "generated_tokens": 31, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2377", "db_id": "csu_1", "question": "How many faculty lines are there at San Francisco State University in 2004?", "gold_sql": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = \"San Francisco State University\"", "raw_output": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "predicted_sql": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "generation_status": "ok", "prompt_tokens": 427, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2373", "db_id": "csu_1", "question": "How many faculty, in total, are there in the year 2002?", "gold_sql": "SELECT sum(faculty) FROM faculty WHERE YEAR = 2002", "raw_output": "SELECT SUM(T1.Faculty) FROM faculty AS T1 WHERE T1.Year = 2002", "predicted_sql": "SELECT SUM(T1.Faculty) FROM faculty AS T1 WHERE T1.Year = 2002", "generation_status": "ok", "prompt_tokens": 427, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2375", "db_id": "csu_1", "question": "What is the number of faculty at Long Beach State University in 2002?", "gold_sql": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = \"Long Beach State University\"", "raw_output": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'Long Beach State University' AND T1.Year = 2002", "predicted_sql": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'Long Beach State University' AND T1.Year = 2002", "generation_status": "ok", "prompt_tokens": 427, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2368", "db_id": "csu_1", "question": "How many degrees were conferred in \"San Jose State University\" in 2000?", "gold_sql": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", "raw_output": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "predicted_sql": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2390", "db_id": "csu_1", "question": "Find the campus fee of \"San Jose State University\" in year 2000.", "gold_sql": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2355", "db_id": "csu_1", "question": "What is the average fee for a CSU campus in the year of 2005?", "gold_sql": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 2005", "raw_output": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2005", "predicted_sql": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 2005", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2370", "db_id": "csu_1", "question": "What are the degrees conferred in \"San Francisco State University\" in 2001.", "gold_sql": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", "raw_output": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2001", "predicted_sql": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2001", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2358", "db_id": "csu_1", "question": "For each Orange county campus, report the number of degrees granted after 2000.", "gold_sql": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", "raw_output": "SELECT T1.Campus, SUM(T3.Degrees) FROM Campuses AS T1 JOIN degrees AS T3 ON T1.Id = T3.Campus WHERE T1.County = 'Orange' AND T3.Year > 2000 GROUP BY T1.Campus", "predicted_sql": "SELECT T1.Campus, SUM(T3.Degrees) FROM Campuses AS T1 JOIN degrees AS T3 ON T1.Id = T3.Campus WHERE T1.County = 'Orange' AND T3.Year > 2000 GROUP BY T1.Campus", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2353", "db_id": "csu_1", "question": "What is the average fee for a CSU campus in the year of 1996?", "gold_sql": "SELECT avg(campusfee) FROM csu_fees WHERE YEAR = 1996", "raw_output": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 1996", "predicted_sql": "SELECT AVG(T1.CampusFee) FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 1996", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2391", "db_id": "csu_1", "question": "What is the campus fee in the year 2000 for San Jose State University?", "gold_sql": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2000", "generation_status": "ok", "prompt_tokens": 428, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2359", "db_id": "csu_1", "question": "What is the total number of degrees granted after 2000 for each Orange county campus?", "gold_sql": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN degrees AS T2 ON T1.Id = T2.Campus WHERE T1.County = 'Orange' AND T2.Year > 2000", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN degrees AS T2 ON T1.Id = T2.Campus WHERE T1.County = 'Orange' AND T2.Year > 2000", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2336", "db_id": "csu_1", "question": "What is the campus fee of \"San Jose State University\" in year 1996?", "gold_sql": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 1996", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 1996", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2338", "db_id": "csu_1", "question": "What is the campus fee of \"San Francisco State University\" in year 1996?", "gold_sql": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 1996", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 1996", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2381", "db_id": "csu_1", "question": "How many faculty members did the university that conferred the most degrees in 2002 have?", "gold_sql": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", "raw_output": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2002 ORDER BY T2.Degrees DESC LIMIT 1", "predicted_sql": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2002 ORDER BY T2.Degrees DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2384", "db_id": "csu_1", "question": "How many undergraduates are there in \"San Jose State University\" in year 2004?", "gold_sql": "SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", "raw_output": "SELECT T1.Undergraduate FROM discipline_enrollments AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2004", "predicted_sql": "SELECT T1.Undergraduate FROM discipline_enrollments AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Jose State University' AND T1.Year = 2004", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2388", "db_id": "csu_1", "question": "What is the campus fee of \"San Francisco State University\" in year 2000?", "gold_sql": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Francisco State University\" AND t1.year = 2000", "raw_output": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2000", "predicted_sql": "SELECT T1.CampusFee FROM csu_fees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2000", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2356", "db_id": "csu_1", "question": "report the total number of degrees granted between 1998 and 2002.", "gold_sql": "SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", "raw_output": "SELECT SUM(T2.Degrees) FROM degrees AS T1 INNER JOIN campuses AS T3 ON T1.Campus = T3.Id WHERE T1.Year BETWEEN 1998 AND 2002", "predicted_sql": "SELECT SUM(T2.Degrees) FROM degrees AS T1 INNER JOIN campuses AS T3 ON T1.Campus = T3.Id WHERE T1.Year BETWEEN 1998 AND 2002", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Degrees", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2389", "db_id": "csu_1", "question": "In the year 2000, what is the campus fee for San Francisco State University?", "gold_sql": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Francisco State University\" AND t1.year = 2000", "raw_output": "SELECT T2.CampusFee FROM csu_fees AS T2 INNER JOIN Campuses AS T1 ON T2.Campus = T1.Id WHERE T1.Campus = 'San Francisco State University' AND T2.Year = 2000", "predicted_sql": "SELECT T2.CampusFee FROM csu_fees AS T2 INNER JOIN Campuses AS T1 ON T2.Campus = T1.Id WHERE T1.Campus = 'San Francisco State University' AND T2.Year = 2000", "generation_status": "ok", "prompt_tokens": 429, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2376", "db_id": "csu_1", "question": "How many faculty lines are there in \"San Francisco State University\" in year 2004?", "gold_sql": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = \"San Francisco State University\"", "raw_output": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "predicted_sql": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "generation_status": "ok", "prompt_tokens": 430, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2386", "db_id": "csu_1", "question": "What is the number of graduates in \"San Francisco State University\" in year 2004?", "gold_sql": "SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", "raw_output": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "predicted_sql": "SELECT T1.Degrees FROM degrees AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'San Francisco State University' AND T1.Year = 2004", "generation_status": "ok", "prompt_tokens": 430, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2383", "db_id": "csu_1", "question": "How many faculty members are at the university that gave the least number of degrees in 2001?", "gold_sql": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", "raw_output": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2001 ORDER BY T2.Degrees ASC LIMIT 1", "predicted_sql": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2001 ORDER BY T2.Degrees ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 431, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2374", "db_id": "csu_1", "question": "What is the number of faculty lines in campus \"Long Beach State University\" in 2002?", "gold_sql": "SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = \"Long Beach State University\"", "raw_output": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'Long Beach State University' AND T1.Year = 2002", "predicted_sql": "SELECT T1.Faculty FROM faculty AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T2.Campus = 'Long Beach State University' AND T1.Year = 2002", "generation_status": "ok", "prompt_tokens": 431, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2334", "db_id": "csu_1", "question": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.", "gold_sql": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN Campuses AS T2 ON T1.Location = T2.Location WHERE T1.Location = 'Northridge, Los Angeles' OR T1.Location = 'San Francisco, San Francisco'", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN Campuses AS T2 ON T1.Location = T2.Location WHERE T1.Location = 'Northridge, Los Angeles' OR T1.Location = 'San Francisco, San Francisco'", "generation_status": "ok", "prompt_tokens": 431, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2360", "db_id": "csu_1", "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "gold_sql": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2002 HAVING SUM(T2.Faculty) > (SELECT MAX(T3.Faculty) FROM faculty AS T3 JOIN Campuses AS T4 ON T3.Campus = T4.Id JOIN Campuses AS T5 ON T4.Id = T5.Id WHERE T5.County = 'Orange' AND T3.Year = 2002);", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2002 HAVING SUM(T2.Faculty) > (SELECT MAX(T3.Faculty) FROM faculty AS T3 JOIN Campuses AS T4 ON T3.Campus = T4.Id JOIN Campuses AS T5 ON T4.Id = T5.Id WHERE T5.County = 'Orange' AND T3.Year = 2002);", "generation_status": "ok", "prompt_tokens": 432, "generated_tokens": 115, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "HAVING clause on a non-aggregate query", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2382", "db_id": "csu_1", "question": "How many faculty lines are there in the university that conferred the least number of degrees in year 2001?", "gold_sql": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", "raw_output": "SELECT SUM(T1.Faculty) FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2001 HAVING T1.Campus = (SELECT Campus FROM degrees ORDER BY Degrees ASC LIMIT 1);", "predicted_sql": "SELECT SUM(T1.Faculty) FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2001 HAVING T1.Campus = (SELECT Campus FROM degrees ORDER BY Degrees ASC LIMIT 1);", "generation_status": "ok", "prompt_tokens": 433, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2380", "db_id": "csu_1", "question": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?", "gold_sql": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", "raw_output": "SELECT SUM(T1.Faculty) FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2002 AND T1.Campus = (SELECT Campus FROM degrees ORDER BY Degrees DESC LIMIT 1)", "predicted_sql": "SELECT SUM(T1.Faculty) FROM faculty AS T1 INNER JOIN degrees AS T2 ON T1.Campus = T2.Campus WHERE T2.Year = 2002 AND T1.Campus = (SELECT Campus FROM degrees ORDER BY Degrees DESC LIMIT 1)", "generation_status": "ok", "prompt_tokens": 433, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2361", "db_id": "csu_1", "question": "What are the names of the campus that have more faculties in 2002 than the maximum number in Orange county?", "gold_sql": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT max(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2002 AND T2.Faculty > (SELECT MAX(T3.Faculty) FROM faculty AS T3 JOIN Campuses AS T4 ON T3.Campus = T4.Id JOIN Campuses AS T5 ON T4.Id = T5.Id WHERE T4.County = 'Orange' AND T3.Year = 2002)", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2002 AND T2.Faculty > (SELECT MAX(T3.Faculty) FROM faculty AS T3 JOIN Campuses AS T4 ON T3.Campus = T4.Id JOIN Campuses AS T5 ON T4.Id = T5.Id WHERE T4.County = 'Orange' AND T3.Year = 2002)", "generation_status": "ok", "prompt_tokens": 434, "generated_tokens": 112, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2379", "db_id": "csu_1", "question": "What are the campuses that had between 600 and 1000 faculty members in 2004?", "gold_sql": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2004 AND T2.Faculty BETWEEN 600 AND 1000", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2004 AND T2.Faculty BETWEEN 600 AND 1000", "generation_status": "ok", "prompt_tokens": 435, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2378", "db_id": "csu_1", "question": "List the campus that have between 600 and 1000 faculty lines in year 2004.", "gold_sql": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2004 AND T2.Faculty BETWEEN 600 AND 1000", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN faculty AS T2 ON T1.Id = T2.Campus WHERE T2.Year = 2004 AND T2.Faculty BETWEEN 600 AND 1000", "generation_status": "ok", "prompt_tokens": 435, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2362", "db_id": "csu_1", "question": "What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?", "gold_sql": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", "raw_output": "SELECT T1.Campus FROM enrollments AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 1956 AND T1.TotalEnrollment_AY > 400 AND T1.FTE_AY > 200", "predicted_sql": "SELECT T1.Campus FROM enrollments AS T1 INNER JOIN Campuses AS T2 ON T1.Campus = T2.Id WHERE T1.Year = 1956 AND T1.TotalEnrollment_AY > 400 AND T1.FTE_AY > 200", "generation_status": "ok", "prompt_tokens": 438, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2363", "db_id": "csu_1", "question": "What campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled?", "gold_sql": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", "raw_output": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN enrollments AS T2 ON T1.Id = T2.Campus WHERE T1.Year = 1956 AND T2.FTE_AY > 200 AND T2.TotalEnrollment_AY > 400", "predicted_sql": "SELECT T1.Campus FROM Campuses AS T1 INNER JOIN enrollments AS T2 ON T1.Id = T2.Campus WHERE T1.Year = 1956 AND T2.FTE_AY > 200 AND T2.TotalEnrollment_AY > 400", "generation_status": "ok", "prompt_tokens": 441, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3885", "db_id": "insurance_policies", "question": "Return the distinct customer details.", "gold_sql": "SELECT DISTINCT customer_details FROM Customers", "raw_output": "SELECT DISTINCT Customer_Details FROM Customers", "predicted_sql": "SELECT DISTINCT Customer_Details FROM Customers", "generation_status": "ok", "prompt_tokens": 487, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3882", "db_id": "insurance_policies", "question": "What is the total amount of payment?", "gold_sql": "SELECT sum(Amount_Payment) FROM Payments", "raw_output": "SELECT SUM(Amount_Payment) FROM Payments", "predicted_sql": "SELECT SUM(Amount_Payment) FROM Payments", "generation_status": "ok", "prompt_tokens": 489, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3889", "db_id": "insurance_policies", "question": "Count the total number of settlements made.", "gold_sql": "SELECT count(*) FROM Settlements", "raw_output": "SELECT count(*) FROM Settlements", "predicted_sql": "SELECT count(*) FROM Settlements", "generation_status": "ok", "prompt_tokens": 489, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3883", "db_id": "insurance_policies", "question": "Compute the total amount of payment processed.", "gold_sql": "SELECT sum(Amount_Payment) FROM Payments", "raw_output": "SELECT SUM(Amount_Payment) FROM Payments", "predicted_sql": "SELECT SUM(Amount_Payment) FROM Payments", "generation_status": "ok", "prompt_tokens": 489, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3878", "db_id": "insurance_policies", "question": "What is the most popular payment method?", "gold_sql": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Payment_Method_Code, COUNT(*) AS payment_count FROM Payments GROUP BY Payment_Method_Code ORDER BY payment_count DESC LIMIT 1", "predicted_sql": "SELECT Payment_Method_Code, COUNT(*) AS payment_count FROM Payments GROUP BY Payment_Method_Code ORDER BY payment_count DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 489, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3888", "db_id": "insurance_policies", "question": "How many settlements are there in total?", "gold_sql": "SELECT count(*) FROM Settlements", "raw_output": "SELECT count(*) FROM Settlements", "predicted_sql": "SELECT count(*) FROM Settlements", "generation_status": "ok", "prompt_tokens": 489, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3879", "db_id": "insurance_policies", "question": "Which payment method is used the most often?", "gold_sql": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Payment_Method_Code, COUNT(*) AS payment_count FROM Payments GROUP BY Payment_Method_Code ORDER BY payment_count DESC LIMIT 1", "predicted_sql": "SELECT Payment_Method_Code, COUNT(*) AS payment_count FROM Payments GROUP BY Payment_Method_Code ORDER BY payment_count DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 490, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3887", "db_id": "insurance_policies", "question": "Find the policy type the most customers choose.", "gold_sql": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY COUNT(Customer_ID) DESC LIMIT 1", "predicted_sql": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY COUNT(Customer_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 490, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3896", "db_id": "insurance_policies", "question": "Find the total claimed amount of all the claims.", "gold_sql": "SELECT sum(Amount_Claimed) FROM Claims", "raw_output": "SELECT SUM(T1.Amount_Claimed) FROM Claims AS T1", "predicted_sql": "SELECT SUM(T1.Amount_Claimed) FROM Claims AS T1", "generation_status": "ok", "prompt_tokens": 491, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3884", "db_id": "insurance_policies", "question": "What are all the distinct details of the customers?", "gold_sql": "SELECT DISTINCT customer_details FROM Customers", "raw_output": "SELECT DISTINCT Customer_Details FROM Customers", "predicted_sql": "SELECT DISTINCT Customer_Details FROM Customers", "generation_status": "ok", "prompt_tokens": 491, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3897", "db_id": "insurance_policies", "question": "What is total amount claimed summed across all the claims?", "gold_sql": "SELECT sum(Amount_Claimed) FROM Claims", "raw_output": "SELECT SUM(T1.Amount_Claimed) FROM Claims AS T1", "predicted_sql": "SELECT SUM(T1.Amount_Claimed) FROM Claims AS T1", "generation_status": "ok", "prompt_tokens": 492, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3873", "db_id": "insurance_policies", "question": "Compute the total amount of settlement across all the settlements.", "gold_sql": "SELECT sum(Amount_Settled) FROM Settlements", "raw_output": "SELECT SUM(Amount_Settled) FROM Claims", "predicted_sql": "SELECT SUM(Amount_Settled) FROM Claims", "generation_status": "ok", "prompt_tokens": 492, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3881", "db_id": "insurance_policies", "question": "What is the payment method that were used the least often?", "gold_sql": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1", "raw_output": "SELECT T1.Payment_Method_Code FROM Payments AS T1 GROUP BY T1.Payment_Method_Code ORDER BY COUNT(*) ASC LIMIT 1", "predicted_sql": "SELECT T1.Payment_Method_Code FROM Payments AS T1 GROUP BY T1.Payment_Method_Code ORDER BY COUNT(*) ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 493, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3886", "db_id": "insurance_policies", "question": "Which kind of policy type was chosen by the most customers?", "gold_sql": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY COUNT(Customer_ID) DESC LIMIT 1", "predicted_sql": "SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code ORDER BY COUNT(Customer_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 493, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3871", "db_id": "insurance_policies", "question": "Tell me the the date when the first claim was made.", "gold_sql": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1", "raw_output": "SELECT MIN(T1.Date_Claim_Made) FROM Claims AS T1", "predicted_sql": "SELECT MIN(T1.Date_Claim_Made) FROM Claims AS T1", "generation_status": "ok", "prompt_tokens": 493, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3876", "db_id": "insurance_policies", "question": "What are the claim dates and settlement dates of all the settlements?", "gold_sql": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements", "raw_output": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Settlements AS T1", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Settlements AS T1", "generation_status": "ok", "prompt_tokens": 494, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3892", "db_id": "insurance_policies", "question": "List the details of the customers who do not have any policies.", "gold_sql": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "generation_status": "ok", "prompt_tokens": 494, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3872", "db_id": "insurance_policies", "question": "What is the total amount of settlement made for all the settlements?", "gold_sql": "SELECT sum(Amount_Settled) FROM Settlements", "raw_output": "SELECT SUM(T1.Amount_Settled) FROM Settlements AS T1", "predicted_sql": "SELECT SUM(T1.Amount_Settled) FROM Settlements AS T1", "generation_status": "ok", "prompt_tokens": 494, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3880", "db_id": "insurance_policies", "question": "With which kind of payment method were the least number of payments processed?", "gold_sql": "SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY count(*) ASC LIMIT 1", "raw_output": "SELECT T1.Payment_Method_Code FROM Payments AS T1 GROUP BY T1.Payment_Method_Code ORDER BY COUNT(T1.Payment_ID) ASC LIMIT 1", "predicted_sql": "SELECT T1.Payment_Method_Code FROM Payments AS T1 GROUP BY T1.Payment_Method_Code ORDER BY COUNT(T1.Payment_ID) ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 495, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3877", "db_id": "insurance_policies", "question": "Tell me the the claim date and settlement date for each settlement case.", "gold_sql": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Settlements", "raw_output": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Settlements AS T1", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Settlements AS T1", "generation_status": "ok", "prompt_tokens": 495, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3893", "db_id": "insurance_policies", "question": "Which customers do not have any policies? Find the details of these customers.", "gold_sql": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "generation_status": "ok", "prompt_tokens": 496, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3870", "db_id": "insurance_policies", "question": "Of all the claims, what was the earliest date when any claim was made?", "gold_sql": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made ASC LIMIT 1", "raw_output": "SELECT MIN(T1.Date_Claim_Made) FROM Claims AS T1", "predicted_sql": "SELECT MIN(T1.Date_Claim_Made) FROM Claims AS T1", "generation_status": "ok", "prompt_tokens": 497, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3863", "db_id": "insurance_policies", "question": "Return the claim start date for the claims whose claimed amount is no more than the average", "gold_sql": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims )", "raw_output": "SELECT T1.Date_Claim_Made FROM Claims AS T1 WHERE T1.Amount_Claimed <= (SELECT AVG(Amount_Claimed) FROM Claims)", "predicted_sql": "SELECT T1.Date_Claim_Made FROM Claims AS T1 WHERE T1.Amount_Claimed <= (SELECT AVG(Amount_Claimed) FROM Claims)", "generation_status": "ok", "prompt_tokens": 498, "generated_tokens": 36, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3875", "db_id": "insurance_policies", "question": "Find the the customer details and id for the customers who had more than one policy.", "gold_sql": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1", "raw_output": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID, T1.Customer_Details HAVING count(*) > 1", "predicted_sql": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID, T1.Customer_Details HAVING count(*) > 1", "generation_status": "ok", "prompt_tokens": 498, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3854", "db_id": "insurance_policies", "question": "List the method, date and amount of all the payments, in ascending order of date.", "gold_sql": "SELECT Payment_Method_Code , Date_Payment_Made , Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC", "raw_output": "SELECT T1.Payment_Method_Code, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 ORDER BY T1.Date_Payment_Made ASC", "predicted_sql": "SELECT T1.Payment_Method_Code, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 ORDER BY T1.Date_Payment_Made ASC", "generation_status": "ok", "prompt_tokens": 499, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3890", "db_id": "insurance_policies", "question": "Which Payments were processed with Visa? List the payment Id, the date and the amount.", "gold_sql": "SELECT Payment_ID , Date_Payment_Made , Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'", "raw_output": "SELECT T1.Payment_ID, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 INNER JOIN Settlements AS T2 ON T1.Settlement_ID = T2.Settlement_ID WHERE T1.Payment_Method_Code = 'Visa'", "predicted_sql": "SELECT T1.Payment_ID, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 INNER JOIN Settlements AS T2 ON T1.Settlement_ID = T2.Settlement_ID WHERE T1.Payment_Method_Code = 'Visa'", "generation_status": "ok", "prompt_tokens": 499, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3874", "db_id": "insurance_policies", "question": "Who are the customers that had more than 1 policy? List the customer details and id.", "gold_sql": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING count(*) > 1", "raw_output": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID HAVING count(*) > 1", "predicted_sql": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID HAVING count(*) > 1", "generation_status": "ok", "prompt_tokens": 500, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3891", "db_id": "insurance_policies", "question": "Give me the payment Id, the date and the amount for all the payments processed with Visa.", "gold_sql": "SELECT Payment_ID , Date_Payment_Made , Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'", "raw_output": "SELECT T1.Payment_ID, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 WHERE T1.Payment_Method_Code = 'Visa'", "predicted_sql": "SELECT T1.Payment_ID, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 WHERE T1.Payment_Method_Code = 'Visa'", "generation_status": "ok", "prompt_tokens": 500, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3864", "db_id": "insurance_policies", "question": "How many settlements does each claim correspond to? List the claim id and the number of settlements.", "gold_sql": "SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id", "raw_output": "SELECT T1.Claim_ID, count(T2.Settlement_ID) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID", "predicted_sql": "SELECT T1.Claim_ID, count(T2.Settlement_ID) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID", "generation_status": "ok", "prompt_tokens": 500, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3865", "db_id": "insurance_policies", "question": "Find the number of settlements each claim corresponds to. Show the number together with the claim id.", "gold_sql": "SELECT T1.Claim_id , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id", "raw_output": "SELECT T1.Claim_ID, count(T2.Settlement_ID) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID", "predicted_sql": "SELECT T1.Claim_ID, count(T2.Settlement_ID) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID", "generation_status": "ok", "prompt_tokens": 500, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3869", "db_id": "insurance_policies", "question": "Find the claim id and the number of settlements made for the claim with the most recent settlement date.", "gold_sql": "SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1", "raw_output": "SELECT T1.Claim_ID, count(T2.Settlement_ID) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID ORDER BY T2.Date_Claim_Settled DESC LIMIT 1", "predicted_sql": "SELECT T1.Claim_ID, count(T2.Settlement_ID) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID ORDER BY T2.Date_Claim_Settled DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 501, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3861", "db_id": "insurance_policies", "question": "Give me the claim date, settlement date for all the claims whose claimed amount is larger than the average.", "gold_sql": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )", "raw_output": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Claims AS T1 WHERE T1.Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Claims AS T1 WHERE T1.Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)", "generation_status": "ok", "prompt_tokens": 502, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3855", "db_id": "insurance_policies", "question": "What are the method, date and amount of each payment? Sort the list in ascending order of date.", "gold_sql": "SELECT Payment_Method_Code , Date_Payment_Made , Amount_Payment FROM Payments ORDER BY Date_Payment_Made ASC", "raw_output": "SELECT T1.Payment_Method_Code, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 ORDER BY T1.Date_Payment_Made ASC", "predicted_sql": "SELECT T1.Payment_Method_Code, T1.Date_Payment_Made, T1.Amount_Payment FROM Payments AS T1 ORDER BY T1.Date_Payment_Made ASC", "generation_status": "ok", "prompt_tokens": 502, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3859", "db_id": "insurance_policies", "question": "Find the claimed amount in the claim with the least amount settled. Show both the settlement amount and claim amount.", "gold_sql": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1", "raw_output": "SELECT T1.Amount_Settled, T2.Amount_Claimed FROM Settlements AS T1 JOIN Claims AS T2 ON T1.Claim_ID WHERE T1.Amount_Settled = (SELECT MIN(Amount_Settled) FROM Settlements);", "predicted_sql": "SELECT T1.Amount_Settled, T2.Amount_Claimed FROM Settlements AS T1 JOIN Claims AS T2 ON T1.Claim_ID WHERE T1.Amount_Settled = (SELECT MIN(Amount_Settled) FROM Settlements);", "generation_status": "ok", "prompt_tokens": 503, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3852", "db_id": "insurance_policies", "question": "Which customer had at least 2 policies but did not file any claims? List the customer details and id.", "gold_sql": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id", "raw_output": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID LEFT JOIN Claims AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T1.Customer_ID IN (SELECT Customer_ID FROM Customer_Policies GROUP BY Customer_ID HAVING COUNT(Policy_ID) >= 2) AND T3.Claim_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID LEFT JOIN Claims AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T1.Customer_ID IN (SELECT Customer_ID FROM Customer_Policies GROUP BY Customer_ID HAVING COUNT(Policy_ID) >= 2) AND T3.Claim_ID IS NULL", "generation_status": "ok", "prompt_tokens": 503, "generated_tokens": 103, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3857", "db_id": "insurance_policies", "question": "Find the settlement amount of the claim with the largest claim amount. Show both the settlement amount and claim amount.", "gold_sql": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1", "raw_output": "SELECT T1.Amount_Settled, T2.Amount_Claimed FROM Settlements AS T1 JOIN Claims AS T2 ON T1.Claim_ID ORDER BY T2.Amount_Claimed DESC LIMIT 1", "predicted_sql": "SELECT T1.Amount_Settled, T2.Amount_Claimed FROM Settlements AS T1 JOIN Claims AS T2 ON T1.Claim_ID ORDER BY T2.Amount_Claimed DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 503, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3867", "db_id": "insurance_policies", "question": "Find the claim id and claim date of the claim that incurred the most settlement count. Also tell me the count.", "gold_sql": "SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Claim_ID, T1.Date_Claim_Made, COUNT(T2.Settlement_ID) AS settlement_count FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID, T1.Date_Claim_Made ORDER BY settlement_count DESC LIMIT 1", "predicted_sql": "SELECT T1.Claim_ID, T1.Date_Claim_Made, COUNT(T2.Settlement_ID) AS settlement_count FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID, T1.Date_Claim_Made ORDER BY settlement_count DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 504, "generated_tokens": 82, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3853", "db_id": "insurance_policies", "question": "Give me the the customer details and id for the customers who had two or more policies but did not file any claims.", "gold_sql": "SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2 EXCEPT SELECT T1.customer_details , T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id", "raw_output": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID LEFT JOIN Claims AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T1.Customer_ID IN (SELECT Customer_ID FROM Customer_Policies GROUP BY Customer_ID HAVING COUNT(Policy_ID) >= 2) AND T3.Claim_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Details, T1.Customer_ID FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_ID = T2.Customer_ID LEFT JOIN Claims AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T1.Customer_ID IN (SELECT Customer_ID FROM Customer_Policies GROUP BY Customer_ID HAVING COUNT(Policy_ID) >= 2) AND T3.Claim_ID IS NULL", "generation_status": "ok", "prompt_tokens": 505, "generated_tokens": 103, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3868", "db_id": "insurance_policies", "question": "How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.", "gold_sql": "SELECT count(*) , T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1", "raw_output": "SELECT COUNT(T1.Settlement_ID), T1.Claim_ID FROM Settlements AS T1 JOIN Claims AS T2 ON T1.Claim_ID = T2.Claim_ID ORDER BY T2.Date_Claim_Settled DESC LIMIT 1", "predicted_sql": "SELECT COUNT(T1.Settlement_ID), T1.Claim_ID FROM Settlements AS T1 JOIN Claims AS T2 ON T1.Claim_ID = T2.Claim_ID ORDER BY T2.Date_Claim_Settled DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 505, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3866", "db_id": "insurance_policies", "question": "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.", "gold_sql": "SELECT T1.claim_id , T1.date_claim_made , count(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Claim_ID, T1.Date_Claim_Made, count(T2.Settlement_ID)\nFROM Claims AS T1\nJOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID\nGROUP BY T1.Claim_ID, T1.Date_Claim_Made\nORDER BY count(T2.Settlement_ID) DESC\nLIMIT 1", "predicted_sql": "SELECT T1.Claim_ID, T1.Date_Claim_Made, count(T2.Settlement_ID)\nFROM Claims AS T1\nJOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID\nGROUP BY T1.Claim_ID, T1.Date_Claim_Made\nORDER BY count(T2.Settlement_ID) DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 506, "generated_tokens": 90, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:3862", "db_id": "insurance_policies", "question": "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.", "gold_sql": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= ( SELECT avg(Amount_Settled) FROM Claims )", "raw_output": "SELECT T1.Date_Claim_Made FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID WHERE T2.Amount_Claimed <= (SELECT AVG(Amount_Claimed) FROM Settlements)", "predicted_sql": "SELECT T1.Date_Claim_Made FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID WHERE T2.Amount_Claimed <= (SELECT AVG(Amount_Claimed) FROM Settlements)", "generation_status": "ok", "prompt_tokens": 506, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3850", "db_id": "insurance_policies", "question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.", "gold_sql": "SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )", "raw_output": "SELECT T1.Date_Claim_Made, T1.Claim_ID\nFROM Claims AS T1\nJOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID\nGROUP BY T1.Claim_ID\nHAVING COUNT(T2.Settlement_ID) > 2\nUNION\nSELECT T1.Date_Claim_Made, T1.Claim_ID\nFROM Claims AS T1\nWHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) FROM Claims);", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Claim_ID\nFROM Claims AS T1\nJOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID\nGROUP BY T1.Claim_ID\nHAVING COUNT(T2.Settlement_ID) > 2\nUNION\nSELECT T1.Date_Claim_Made, T1.Claim_ID\nFROM Claims AS T1\nWHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) FROM Claims);", "generation_status": "ok", "prompt_tokens": 508, "generated_tokens": 115, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3894", "db_id": "insurance_policies", "question": "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.", "gold_sql": "SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1", "raw_output": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled, T1.Amount_Settled FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID WHERE T1.Claim_ID IN (SELECT Claim_ID FROM Settlements GROUP BY Claim_ID HAVING COUNT(Settlement_ID) = 1)", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled, T1.Amount_Settled FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID WHERE T1.Claim_ID IN (SELECT Claim_ID FROM Settlements GROUP BY Claim_ID HAVING COUNT(Settlement_ID) = 1)", "generation_status": "ok", "prompt_tokens": 508, "generated_tokens": 85, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3858", "db_id": "insurance_policies", "question": "Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.", "gold_sql": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Settled ASC LIMIT 1", "raw_output": "SELECT T1.Amount_Settled, T2.Amount_Claimed\nFROM Settlements AS T1\nINNER JOIN Claims AS T2 ON T1.Claim_ID = T2.Claim_ID\nORDER BY T1.Amount_Settled\nLIMIT 1", "predicted_sql": "SELECT T1.Amount_Settled, T2.Amount_Claimed\nFROM Settlements AS T1\nINNER JOIN Claims AS T2 ON T1.Claim_ID = T2.Claim_ID\nORDER BY T1.Amount_Settled\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 509, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3856", "db_id": "insurance_policies", "question": "Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount.", "gold_sql": "SELECT Amount_Settled , Amount_Claimed FROM Claims ORDER BY Amount_Claimed DESC LIMIT 1", "raw_output": "SELECT T1.Amount_Settled, T2.Amount_Claimed FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID ORDER BY T1.Amount_Claimed DESC LIMIT 1", "predicted_sql": "SELECT T1.Amount_Settled, T2.Amount_Claimed FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID ORDER BY T1.Amount_Claimed DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 509, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:3860", "db_id": "insurance_policies", "question": "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.", "gold_sql": "SELECT Date_Claim_Made , Date_Claim_Settled FROM Claims WHERE Amount_Claimed > ( SELECT avg(Amount_Claimed) FROM Claims )", "raw_output": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Claims AS T1 WHERE T1.Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled FROM Claims AS T1 WHERE T1.Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)", "generation_status": "ok", "prompt_tokens": 511, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:3895", "db_id": "insurance_policies", "question": "Which claims had exactly one settlement? For each, tell me the the date the claim was made, the date it was settled and the amount settled.", "gold_sql": "SELECT T1.claim_id , T1.date_claim_made , T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING count(*) = 1", "raw_output": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled, T1.Amount_Settled FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID HAVING count(*) = 1", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Date_Claim_Settled, T1.Amount_Settled FROM Claims AS T1 INNER JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID HAVING count(*) = 1", "generation_status": "ok", "prompt_tokens": 511, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:3851", "db_id": "insurance_policies", "question": "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.", "gold_sql": "SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING count(*) > 2 UNION SELECT T1.Date_Claim_Made , T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = ( SELECT max(Amount_Claimed) FROM Claims )", "raw_output": "SELECT T1.Date_Claim_Made, T1.Claim_ID FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID HAVING count(T2.Settlement_ID) > 2\nUNION\nSELECT T1.Date_Claim_Made, T1.Claim_ID FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID\nWHERE T1.Claim_ID IN (SELECT T1_inner.Claim_ID FROM Claims AS T1_inner ORDER BY T1_inner.Amount_Claimed DESC LIMIT 1)\n", "predicted_sql": "SELECT T1.Date_Claim_Made, T1.Claim_ID FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID GROUP BY T1.Claim_ID HAVING count(T2.Settlement_ID) > 2\nUNION\nSELECT T1.Date_Claim_Made, T1.Claim_ID FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_ID = T2.Claim_ID\nWHERE T1.Claim_ID IN (SELECT T1_inner.Claim_ID FROM Claims AS T1_inner ORDER BY T1_inner.Amount_Claimed DESC LIMIT 1)", "generation_status": "ok", "prompt_tokens": 517, "generated_tokens": 149, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6926", "db_id": "tracking_orders", "question": "Sort all the distinct products in alphabetical order.", "gold_sql": "SELECT DISTINCT product_name FROM products ORDER BY product_name", "raw_output": "SELECT DISTINCT product_name FROM Products ORDER BY product_name;", "predicted_sql": "SELECT DISTINCT product_name FROM Products ORDER BY product_name;", "generation_status": "ok", "prompt_tokens": 593, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6886", "db_id": "tracking_orders", "question": "Find the id of the order made most recently.", "gold_sql": "SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1", "raw_output": "SELECT order_id FROM Orders ORDER BY date_order_placed DESC LIMIT 1", "predicted_sql": "SELECT order_id FROM Orders ORDER BY date_order_placed DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 594, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6885", "db_id": "tracking_orders", "question": "What is the id of the most recent order?", "gold_sql": "SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1", "raw_output": "SELECT order_id FROM Orders ORDER BY date_order_placed DESC LIMIT 1", "predicted_sql": "SELECT order_id FROM Orders ORDER BY date_order_placed DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 594, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6925", "db_id": "tracking_orders", "question": "List the names of all distinct products in alphabetical order.", "gold_sql": "SELECT DISTINCT product_name FROM products ORDER BY product_name", "raw_output": "SELECT DISTINCT product_name FROM Products ORDER BY product_name;", "predicted_sql": "SELECT DISTINCT product_name FROM Products ORDER BY product_name;", "generation_status": "ok", "prompt_tokens": 595, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6900", "db_id": "tracking_orders", "question": "Find the id of the customer who made the most orders.", "gold_sql": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT customer_id FROM Orders GROUP BY customer_id ORDER BY COUNT(order_id) DESC LIMIT 1", "predicted_sql": "SELECT customer_id FROM Orders GROUP BY customer_id ORDER BY COUNT(order_id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 596, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6927", "db_id": "tracking_orders", "question": "List the ids of all distinct orders ordered by placed date.", "gold_sql": "SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed", "raw_output": "SELECT DISTINCT order_id FROM Orders ORDER BY date_order_placed", "predicted_sql": "SELECT DISTINCT order_id FROM Orders ORDER BY date_order_placed", "generation_status": "ok", "prompt_tokens": 596, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6919", "db_id": "tracking_orders", "question": "List the name and count of each product in all orders.", "gold_sql": "SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "raw_output": "SELECT T2.product_name, count(T1.order_item_id) FROM Order_Items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name", "predicted_sql": "SELECT T2.product_name, count(T1.order_item_id) FROM Order_Items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name", "generation_status": "ok", "prompt_tokens": 596, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6923", "db_id": "tracking_orders", "question": "Find the id of the order which is shipped most recently.", "gold_sql": "SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments)", "raw_output": "SELECT T1.order_id FROM Orders AS T1 JOIN Shipments AS T2 ON T1.order_id = T2.order_id ORDER BY T2.shipment_date DESC LIMIT 1", "predicted_sql": "SELECT T1.order_id FROM Orders AS T1 JOIN Shipments AS T2 ON T1.order_id = T2.order_id ORDER BY T2.shipment_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 596, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6932", "db_id": "tracking_orders", "question": "Find the name of the customer who made the most orders.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 596, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6898", "db_id": "tracking_orders", "question": "Which customer made the most orders? Find the customer name.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 596, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6929", "db_id": "tracking_orders", "question": "What is the id of the order which has the most items?", "gold_sql": "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.order_id FROM Orders AS T1 JOIN Order_Items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(T2.order_item_id) DESC LIMIT 1", "predicted_sql": "SELECT T1.order_id FROM Orders AS T1 JOIN Order_Items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(T2.order_item_id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6939", "db_id": "tracking_orders", "question": "Find the name of the customers who have at most two orders.", "gold_sql": "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) <= 2", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) <= 2", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6897", "db_id": "tracking_orders", "question": "What is the name of the customer who has the most orders?", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6888", "db_id": "tracking_orders", "question": "Find the order id and customer id associated with the oldest order.", "gold_sql": "SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1", "raw_output": "SELECT T1.order_id, T1.customer_id FROM Orders AS T1 ORDER BY T1.date_order_placed ASC LIMIT 1", "predicted_sql": "SELECT T1.order_id, T1.customer_id FROM Orders AS T1 ORDER BY T1.date_order_placed ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6887", "db_id": "tracking_orders", "question": "what are the order id and customer id of the oldest order?", "gold_sql": "SELECT order_id , customer_id FROM orders ORDER BY date_order_placed LIMIT 1", "raw_output": "SELECT T1.order_id, T1.customer_id FROM Orders AS T1 ORDER BY T1.date_order_placed ASC LIMIT 1", "predicted_sql": "SELECT T1.order_id, T1.customer_id FROM Orders AS T1 ORDER BY T1.date_order_placed ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6917", "db_id": "tracking_orders", "question": "List the count and id of each product in all the orders.", "gold_sql": "SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "raw_output": "SELECT T2.product_id, count(T1.order_item_id) FROM Order_Items AS T1 INNER JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id", "predicted_sql": "SELECT T2.product_id, count(T1.order_item_id) FROM Order_Items AS T1 INNER JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6930", "db_id": "tracking_orders", "question": "Which order deals with the most items? Return the order id.", "gold_sql": "SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.order_id FROM Orders AS T1 JOIN Order_Items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(T2.order_item_id) DESC LIMIT 1", "predicted_sql": "SELECT T1.order_id FROM Orders AS T1 JOIN Order_Items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(T2.order_item_id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 597, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6924", "db_id": "tracking_orders", "question": "Which order has the most recent shipment? Give me the order id.", "gold_sql": "SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments)", "raw_output": "SELECT T1.order_id FROM Shipments AS T1 ORDER BY T1.shipment_date DESC LIMIT 1", "predicted_sql": "SELECT T1.order_id FROM Shipments AS T1 ORDER BY T1.shipment_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 598, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6899", "db_id": "tracking_orders", "question": "What is the customer id of the customer who has the most orders?", "gold_sql": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT customer_id FROM Orders GROUP BY customer_id ORDER BY COUNT(order_id) DESC LIMIT 1", "predicted_sql": "SELECT customer_id FROM Orders GROUP BY customer_id ORDER BY COUNT(order_id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 598, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6916", "db_id": "tracking_orders", "question": "On what day was the order with invoice number 10 placed?", "gold_sql": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10", "raw_output": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id INNER JOIN Invoices AS T3 ON T2.invoice_number = T3.invoice_number WHERE T3.invoice_number = 10", "predicted_sql": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id INNER JOIN Invoices AS T3 ON T2.invoice_number = T3.invoice_number WHERE T3.invoice_number = 10", "generation_status": "ok", "prompt_tokens": 598, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6941", "db_id": "tracking_orders", "question": "List the names of the customers who have once bought product \"food\".", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = 'food'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = 'food'", "generation_status": "ok", "prompt_tokens": 598, "generated_tokens": 86, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6928", "db_id": "tracking_orders", "question": "What are ids of the all distinct orders, sorted by placement date?", "gold_sql": "SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed", "raw_output": "SELECT DISTINCT order_id FROM Orders ORDER BY date_order_placed", "predicted_sql": "SELECT DISTINCT order_id FROM Orders ORDER BY date_order_placed", "generation_status": "ok", "prompt_tokens": 598, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6894", "db_id": "tracking_orders", "question": "Which customers have orders with status \"Packing\"? Give me the customer names.", "gold_sql": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\"", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Packing'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Packing'", "generation_status": "ok", "prompt_tokens": 599, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6940", "db_id": "tracking_orders", "question": "What are the names of the customers who have made two or less orders?", "gold_sql": "SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) <= 2", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) <= 2", "generation_status": "ok", "prompt_tokens": 599, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6931", "db_id": "tracking_orders", "question": "What is the name of the customer who has the largest number of orders?", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 599, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:6893", "db_id": "tracking_orders", "question": "List the name of all the distinct customers who have orders with status \"Packing\".", "gold_sql": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\"", "raw_output": "SELECT DISTINCT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Packing'", "predicted_sql": "SELECT DISTINCT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Packing'", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6891", "db_id": "tracking_orders", "question": "Find the ids of all the order items whose product id is 11.", "gold_sql": "SELECT order_item_id FROM order_items WHERE product_id = 11", "raw_output": "SELECT order_item_id FROM Order_Items WHERE product_id = 11", "predicted_sql": "SELECT order_item_id FROM Order_Items WHERE product_id = 11", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6903", "db_id": "tracking_orders", "question": "Find the dates of orders which belong to the customer named \"Jeramie\".", "gold_sql": "SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "raw_output": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "predicted_sql": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5654", "db_id": "customers_and_products_contacts", "question": "Show all distinct cities in the address record.", "gold_sql": "SELECT DISTINCT city FROM addresses", "raw_output": "SELECT DISTINCT city FROM Addresses", "predicted_sql": "SELECT DISTINCT city FROM Addresses", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6915", "db_id": "tracking_orders", "question": "What is the placement date of the order whose invoice number is 10?", "gold_sql": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10", "raw_output": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id INNER JOIN Invoices AS T3 ON T2.invoice_number = T3.invoice_number WHERE T3.invoice_number = 10", "predicted_sql": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id INNER JOIN Invoices AS T3 ON T2.invoice_number = T3.invoice_number WHERE T3.invoice_number = 10", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5653", "db_id": "customers_and_products_contacts", "question": "How many addresses are there in country USA?", "gold_sql": "SELECT count(*) FROM addresses WHERE country = 'USA'", "raw_output": "SELECT count(*) FROM Addresses WHERE country = 'USA'", "predicted_sql": "SELECT count(*) FROM Addresses WHERE country = 'USA'", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6920", "db_id": "tracking_orders", "question": "For each product, show its name and the number of times it was ordered.", "gold_sql": "SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "raw_output": "SELECT T2.product_name, count(T1.order_item_id) FROM Order_Items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name", "predicted_sql": "SELECT T2.product_name, count(T1.order_item_id) FROM Order_Items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6918", "db_id": "tracking_orders", "question": "For each product, return its id and the number of times it was ordered.", "gold_sql": "SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id", "raw_output": "SELECT T1.product_id, count(T2.order_item_id) FROM Products AS T1 JOIN Order_Items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id", "predicted_sql": "SELECT T1.product_id, count(T2.order_item_id) FROM Products AS T1 JOIN Order_Items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id", "generation_status": "ok", "prompt_tokens": 600, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6895", "db_id": "tracking_orders", "question": "Find the details of all the distinct customers who have orders with status \"On Road\".", "gold_sql": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"", "raw_output": "SELECT DISTINCT T1.customer_details FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road'", "predicted_sql": "SELECT DISTINCT T1.customer_details FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road'", "generation_status": "ok", "prompt_tokens": 601, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6889", "db_id": "tracking_orders", "question": "Find the id of the order whose shipment tracking number is \"3452\".", "gold_sql": "SELECT order_id FROM shipments WHERE shipment_tracking_number = \"3452\"", "raw_output": "SELECT T1.order_id FROM Shipments AS T1 WHERE T1.shipment_tracking_number = '3452'", "predicted_sql": "SELECT T1.order_id FROM Shipments AS T1 WHERE T1.shipment_tracking_number = '3452'", "generation_status": "ok", "prompt_tokens": 601, "generated_tokens": 31, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6942", "db_id": "tracking_orders", "question": "What are the names of the customers who bought product \"food\" at least once?", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = 'food'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = 'food'", "generation_status": "ok", "prompt_tokens": 601, "generated_tokens": 86, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6904", "db_id": "tracking_orders", "question": "What are the dates of the orders made by the customer named \"Jeramie\"?", "gold_sql": "SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "raw_output": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "predicted_sql": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "generation_status": "ok", "prompt_tokens": 601, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6914", "db_id": "tracking_orders", "question": "On which day was the order placed whose shipment tracking number is 3452?", "gold_sql": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452", "raw_output": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = '3452'", "predicted_sql": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = '3452'", "generation_status": "ok", "prompt_tokens": 602, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5663", "db_id": "customers_and_products_contacts", "question": "How many products have a price higher than the average?", "gold_sql": "SELECT count(*) FROM products WHERE product_price > (SELECT avg(product_price) FROM products)", "raw_output": "SELECT COUNT(T1.product_id) FROM Products AS T1 WHERE T1.product_price > (SELECT AVG(product_price) FROM Products);", "predicted_sql": "SELECT COUNT(T1.product_id) FROM Products AS T1 WHERE T1.product_price > (SELECT AVG(product_price) FROM Products);", "generation_status": "ok", "prompt_tokens": 602, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5662", "db_id": "customers_and_products_contacts", "question": "Show the minimum, maximum, average price for all products.", "gold_sql": "SELECT min(product_price) , max(product_price) , avg(product_price) FROM products", "raw_output": "SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM Products", "predicted_sql": "SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM Products", "generation_status": "ok", "prompt_tokens": 603, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5655", "db_id": "customers_and_products_contacts", "question": "Show each state and the number of addresses in each state.", "gold_sql": "SELECT state_province_county , count(*) FROM addresses GROUP BY state_province_county", "raw_output": "SELECT state_province_county, count(address_id) FROM Addresses GROUP BY state_province_county", "predicted_sql": "SELECT state_province_county, count(address_id) FROM Addresses GROUP BY state_province_county", "generation_status": "ok", "prompt_tokens": 603, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5661", "db_id": "customers_and_products_contacts", "question": "Show the product name and total order quantity for each product.", "gold_sql": "SELECT T1.product_name , sum(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id", "raw_output": "SELECT T2.product_name, SUM(T3.order_quantity) FROM Products AS T2 JOIN Order_Items AS T3 ON T2.product_id = T3.product_id GROUP BY T2.product_name", "predicted_sql": "SELECT T2.product_name, SUM(T3.order_quantity) FROM Products AS T2 JOIN Order_Items AS T3 ON T2.product_id = T3.product_id GROUP BY T2.product_name", "generation_status": "ok", "prompt_tokens": 603, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5657", "db_id": "customers_and_products_contacts", "question": "Show the name of the customer who has the most orders.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY COUNT(T2.order_id) DESC LIMIT 1", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_name ORDER BY COUNT(T2.order_id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 603, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:5658", "db_id": "customers_and_products_contacts", "question": "Show the product type codes which have at least two products.", "gold_sql": "SELECT product_type_code FROM products GROUP BY product_type_code HAVING count(*) >= 2", "raw_output": "SELECT product_type_code FROM Products GROUP BY product_type_code HAVING count(*) >= 2", "predicted_sql": "SELECT product_type_code FROM Products GROUP BY product_type_code HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 603, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6909", "db_id": "tracking_orders", "question": "Find the names of the customers who have order status both \"On Road\" and \"Shipped\".", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 92, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6911", "db_id": "tracking_orders", "question": "Find the id of the customers who have order status both \"On Road\" and \"Shipped\".", "gold_sql": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "raw_output": "SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "predicted_sql": "SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 92, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5656", "db_id": "customers_and_products_contacts", "question": "Show names and phones of customers who do not have address information.", "gold_sql": "SELECT customer_name , customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM customer_address_history)", "raw_output": "SELECT T1.customer_name, T1.customer_phone FROM Customers AS T1 LEFT JOIN Customer_Address_History AS T2 ON T1.customer_id = T2.customer_id WHERE T2.address_id IS NULL", "predicted_sql": "SELECT T1.customer_name, T1.customer_phone FROM Customers AS T1 LEFT JOIN Customer_Address_History AS T2 ON T1.customer_id = T2.customer_id WHERE T2.address_id IS NULL", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6937", "db_id": "tracking_orders", "question": "For each customer who has at least two orders, find the customer name and number of orders made.", "gold_sql": "SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2", "raw_output": "SELECT T1.customer_name, count(T2.order_id)\nFROM Customers AS T1\nJOIN Orders AS T2 ON T1.customer_id = T2.customer_id\nGROUP BY T1.customer_id, T1.customer_name\nHAVING count(T2.order_id) >= 2", "predicted_sql": "SELECT T1.customer_name, count(T2.order_id)\nFROM Customers AS T1\nJOIN Orders AS T2 ON T1.customer_id = T2.customer_id\nGROUP BY T1.customer_id, T1.customer_name\nHAVING count(T2.order_id) >= 2", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 75, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6896", "db_id": "tracking_orders", "question": "What are the distinct customers who have orders with status \"On Road\"? Give me the customer details?", "gold_sql": "SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\"", "raw_output": "SELECT T1.customer_details FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road'", "predicted_sql": "SELECT T1.customer_details FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road'", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6892", "db_id": "tracking_orders", "question": "Find all the order items whose product id is 11. What are the order item ids?", "gold_sql": "SELECT order_item_id FROM order_items WHERE product_id = 11", "raw_output": "SELECT order_item_id FROM Order_Items WHERE product_id = 11", "predicted_sql": "SELECT order_item_id FROM Order_Items WHERE product_id = 11", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6938", "db_id": "tracking_orders", "question": "Which customers have made at least two orders? Give me each customer name and number of orders made.", "gold_sql": "SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2", "raw_output": "SELECT T1.customer_name, count(T2.order_id) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(T2.order_id) >= 2", "predicted_sql": "SELECT T1.customer_name, count(T2.order_id) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(T2.order_id) >= 2", "generation_status": "ok", "prompt_tokens": 604, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6913", "db_id": "tracking_orders", "question": "When was the order placed whose shipment tracking number is 3452? Give me the date.", "gold_sql": "SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452", "raw_output": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = '3452'", "predicted_sql": "SELECT T1.date_order_placed FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = '3452'", "generation_status": "ok", "prompt_tokens": 605, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6921", "db_id": "tracking_orders", "question": "Find the ids of orders which are shipped after 2000-01-01.", "gold_sql": "SELECT order_id FROM shipments WHERE shipment_date > \"2000-01-01\"", "raw_output": "SELECT T1.order_id FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_date > '2000-01-01'", "predicted_sql": "SELECT T1.order_id FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_date > '2000-01-01'", "generation_status": "ok", "prompt_tokens": 605, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6902", "db_id": "tracking_orders", "question": "Which orders are made by the customer named \"Jeramie\"? Give me the order ids and status.", "gold_sql": "SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "raw_output": "SELECT T1.order_id, T1.order_status FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "predicted_sql": "SELECT T1.order_id, T1.order_status FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "generation_status": "ok", "prompt_tokens": 605, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6901", "db_id": "tracking_orders", "question": "Give me a list of id and status of orders which belong to the customer named \"Jeramie\".", "gold_sql": "SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = \"Jeramie\"", "raw_output": "SELECT T1.order_id, T1.order_status FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "predicted_sql": "SELECT T1.order_id, T1.order_status FROM Orders AS T1 INNER JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_name = 'Jeramie'", "generation_status": "ok", "prompt_tokens": 605, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1155", "db_id": "yelp", "question": "Find all breweries in Los Angeles", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"breweries\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Brewery' AND T1.city = 'Los Angeles'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Brewery' AND T1.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6944", "db_id": "tracking_orders", "question": "Which customers have ever canceled the purchase of the product \"food\" (the item status is \"Cancel\")?", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = \"Cancel\" AND T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "raw_output": "SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = 'food' AND T3.order_item_status = 'Cancel'", "predicted_sql": "SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = 'food' AND T3.order_item_status = 'Cancel'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 99, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1161", "db_id": "yelp", "question": "Find all Bars reviewed by Patrick", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t2.category_name = \"Bars\" AND t4.name = \"Patrick\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T3.name = 'Patrick' AND T1.category_name = 'Bar'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T3.name = 'Patrick' AND T1.category_name = 'Bar'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.category_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6890", "db_id": "tracking_orders", "question": "Which order's shipment tracking number is \"3452\"? Give me the id of the order.", "gold_sql": "SELECT order_id FROM shipments WHERE shipment_tracking_number = \"3452\"", "raw_output": "SELECT T1.order_id FROM Shipments AS T1 WHERE T1.shipment_tracking_number = '3452'", "predicted_sql": "SELECT T1.order_id FROM Shipments AS T1 WHERE T1.shipment_tracking_number = '3452'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 31, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6912", "db_id": "tracking_orders", "question": "Which customers have both \"On Road\" and \"Shipped\" as order status? List the customer ids.", "gold_sql": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "raw_output": "SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "predicted_sql": "SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_id FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 92, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6910", "db_id": "tracking_orders", "question": "Which customers have both \"On Road\" and \"Shipped\" as order status? List the customer names.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'On Road' INTERSECT SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = 'Shipped'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 92, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1151", "db_id": "yelp", "question": "find all the restaurant in Pennsylvania", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.state = \"Pennsylvania\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.name FROM business AS T1 WHERE T1.state = 'Pennsylvania'", "predicted_sql": "SELECT T1.name FROM business AS T1 WHERE T1.state = 'Pennsylvania'", "generation_status": "ok", "prompt_tokens": 606, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1148", "db_id": "yelp", "question": "List all 5 star Italian restaurant", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.rating = 5 AND t2.category_name = \"Italian\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.name FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T1.rating = 5 AND T2.category_name = 'Italian'", "predicted_sql": "SELECT T1.name FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T1.rating = 5 AND T2.category_name = 'Italian'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1135", "db_id": "yelp", "question": "List all user ids with name Michelle", "gold_sql": "SELECT user_id FROM USER WHERE name = \"Michelle\";", "raw_output": "SELECT user_id FROM user WHERE name = 'Michelle'", "predicted_sql": "SELECT user_id FROM user WHERE name = 'Michelle'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6922", "db_id": "tracking_orders", "question": "Which orders have shipment after 2000-01-01? Give me the order ids.", "gold_sql": "SELECT order_id FROM shipments WHERE shipment_date > \"2000-01-01\"", "raw_output": "SELECT T1.order_id FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_date > '2000-01-01'", "predicted_sql": "SELECT T1.order_id FROM Orders AS T1 INNER JOIN Shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_date > '2000-01-01'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1165", "db_id": "yelp", "question": "Find all restaurant Seafood in Los Angeles", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"Seafood\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Seafood' AND T1.city = 'Los Angeles'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Seafood' AND T1.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1185", "db_id": "yelp", "question": "How many escape games exist in Madison", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t2.category_name = \"escape games\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5666", "db_id": "customers_and_products_contacts", "question": "What are the name and phone of the customer with the most ordered product quantity?", "gold_sql": "SELECT T1.customer_name , T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY sum(T3.order_quantity) DESC LIMIT 1", "raw_output": "SELECT T1.customer_name, T2.contact_phone FROM Customers AS T1 INNER JOIN Contacts AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Customer_Orders AS T3 ON T1.customer_id = T3.customer_id INNER JOIN Order_Items AS T4 ON T3.order_id = T4.order_id GROUP BY T1.customer_id ORDER BY SUM(T4.order_quantity) DESC LIMIT 1", "predicted_sql": "SELECT T1.customer_name, T2.contact_phone FROM Customers AS T1 INNER JOIN Contacts AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Customer_Orders AS T3 ON T1.customer_id = T3.customer_id INNER JOIN Order_Items AS T4 ON T3.order_id = T4.order_id GROUP BY T1.customer_id ORDER BY SUM(T4.order_quantity) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 107, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_others:1224", "db_id": "yelp", "question": "Find the number of users called Michelle", "gold_sql": "SELECT COUNT ( DISTINCT name ) FROM USER WHERE name = \"Michelle\";", "raw_output": "SELECT count(T1.uid) FROM user AS T1 WHERE T1.name = 'Michelle'", "predicted_sql": "SELECT count(T1.uid) FROM user AS T1 WHERE T1.name = 'Michelle'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1215", "db_id": "yelp", "question": "How many reviews has Adrienne written ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id WHERE t2.name = \"Adrienne\";", "raw_output": "SELECT SUM(T1.rating) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Adrienne'", "predicted_sql": "SELECT SUM(T1.rating) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Adrienne'", "generation_status": "ok", "prompt_tokens": 607, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1205", "db_id": "yelp", "question": "what is the number of restaurant in Texas", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.state = \"Texas\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 WHERE T1.state = 'TX'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 WHERE T1.state = 'TX'", "generation_status": "ok", "prompt_tokens": 608, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1156", "db_id": "yelp", "question": "Find all breweries in \" Los Angeles \"", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"breweries\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Brewery' AND T1.city = 'Los Angeles'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Brewery' AND T1.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 608, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1183", "db_id": "yelp", "question": "find the number of escape games in Madison", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t2.category_name = \"escape games\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 608, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1143", "db_id": "yelp", "question": "list all the reviews by Niloofar", "gold_sql": "SELECT t1.text FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id WHERE t2.name = \"Niloofar\";", "raw_output": "SELECT T1.text FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar'", "predicted_sql": "SELECT T1.text FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar'", "generation_status": "ok", "prompt_tokens": 608, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1204", "db_id": "yelp", "question": "How many tips has Michelle written in April", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN tip AS t1 ON t2.user_id = t1.user_id WHERE t1.month = \"April\" AND t2.name = \"Michelle\";", "raw_output": " \nSELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.month = 'April'", "predicted_sql": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.month = 'April'", "generation_status": "ok", "prompt_tokens": 608, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1232", "db_id": "yelp", "question": "Give me all the Moroccan restaurant in Texas", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.state = \"Texas\" AND t2.category_name = \"Moroccan\" AND t3.category_name = \"restaurant\";", "raw_output": " \nSELECT T1.name FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Moroccan' AND T1.state = 'TX'", "predicted_sql": "SELECT T1.name FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Moroccan' AND T1.state = 'TX'", "generation_status": "ok", "prompt_tokens": 608, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1149", "db_id": "yelp", "question": "List all the neighbourhoods with Italian restaurant in Madison", "gold_sql": "SELECT t1.neighbourhood_name FROM category AS t3 JOIN business AS t2 ON t3.business_id = t2.business_id JOIN category AS t4 ON t4.business_id = t2.business_id JOIN neighbourhood AS t1 ON t1.business_id = t2.business_id WHERE t2.city = \"Madison\" AND t3.category_name = \"Italian\" AND t4.category_name = \"restaurant\";", "raw_output": "2.SELECT T1.neighbourhood_name FROM neighbourhood AS T1 JOIN category AS T2 ON T1.business_id = T2.business_id JOIN business AS T3 ON T2.business_id = T3.business_id WHERE T2.category_name = 'Italian' AND T3.city = 'Madison'", "predicted_sql": "2.SELECT T1.neighbourhood_name FROM neighbourhood AS T1 JOIN category AS T2 ON T1.business_id = T2.business_id JOIN business AS T3 ON T2.business_id = T3.business_id WHERE T2.category_name = 'Italian' AND T3.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2.SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1230", "db_id": "yelp", "question": "Find the number of tips written in each month", "gold_sql": "SELECT COUNT ( DISTINCT text ) , MONTH FROM tip GROUP BY MONTH;", "raw_output": "2\nSELECT T2.month, COUNT(T1.tip_id) FROM tip AS T1 JOIN tip AS T2 ON T1.tip_id = T2.tip_id GROUP BY T2.month", "predicted_sql": "2\nSELECT T2.month, COUNT(T1.tip_id) FROM tip AS T1 JOIN tip AS T2 ON T1.tip_id = T2.tip_id GROUP BY T2.month", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "near \"2\": syntax error", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1229", "db_id": "yelp", "question": "Find the total number of reviews written in March", "gold_sql": "SELECT COUNT ( DISTINCT text ) FROM review WHERE MONTH = \"March\";", "raw_output": "2SELECT SUM(CASE WHEN month = 'March' THEN 1 ELSE 0 END) FROM review", "predicted_sql": "2SELECT SUM(CASE WHEN month = 'March' THEN 1 ELSE 0 END) FROM review", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1187", "db_id": "yelp", "question": "How many escape games are there in Madison ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t2.category_name = \"escape games\";", "raw_output": "2SELECT count(*) FROM business WHERE city = 'Madison' AND category_name = 'escape games'", "predicted_sql": "2SELECT count(*) FROM business WHERE city = 'Madison' AND category_name = 'escape games'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6943", "db_id": "tracking_orders", "question": "List the names of customers who have once canceled the purchase of the product \"food\" (the item status is \"Cancel\").", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = \"Cancel\" AND T4.product_name = \"food\" GROUP BY T1.customer_id HAVING count(*) >= 1", "raw_output": "2SELECT T1.customer_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_Items AS T3 ON T2.order_id = T3.order_id JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T3.order_item_status = 'Cancel' AND T4.product_name = 'food'", "predicted_sql": "2SELECT T1.customer_name FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id JOIN Order_Items AS T3 ON T2.order_id = T3.order_id JOIN Products AS T4 ON T3.product_id = T4.product_id WHERE T3.order_item_status = 'Cancel' AND T4.product_name = 'food'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 97, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1169", "db_id": "yelp", "question": "Find all Apple Store in \" Los Angeles \"", "gold_sql": "SELECT business_id FROM business WHERE city = \"Los Angeles\" AND name = \"Apple Store\";", "raw_output": "2*SELECT T1.business_id FROM business AS T1 JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Apple Store' AND T1.city = 'Los Angeles'", "predicted_sql": "2*SELECT T1.business_id FROM business AS T1 JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Apple Store' AND T1.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "near \"2\": syntax error", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1184", "db_id": "yelp", "question": "What is the number of escape games in Madison", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t2.category_name = \"escape games\";", "raw_output": "SELECT SUM(T1.bid) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "predicted_sql": "SELECT SUM(T1.bid) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1194", "db_id": "yelp", "question": "what is the average rating given in Michelle reviews", "gold_sql": "SELECT AVG ( t1.rating ) FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id WHERE t2.name = \"Michelle\";", "raw_output": "SELECT AVG(T1.rating) FROM business AS T1 INNER JOIN review AS T2 ON T1.bid = T2.business_id WHERE T2.user_id = 'Michelle'", "predicted_sql": "SELECT AVG(T1.rating) FROM business AS T1 INNER JOIN review AS T2 ON T1.bid = T2.business_id WHERE T2.user_id = 'Michelle'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1134", "db_id": "yelp", "question": "List all businesses with rating 3.5", "gold_sql": "SELECT name FROM business WHERE rating = 3.5;", "raw_output": "SELECT business_id FROM business WHERE rating = 3.5", "predicted_sql": "SELECT business_id FROM business WHERE rating = 3.5", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 14, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1211", "db_id": "yelp", "question": "How many Starbucks are there in Dallas Texas ?", "gold_sql": "SELECT COUNT ( DISTINCT business_id ) FROM business WHERE city = \"Dallas\" AND name = \"Starbucks\" AND state = \"Texas\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 WHERE T1.name LIKE '%Starbucks%' AND T1.state = 'TX';", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 WHERE T1.name LIKE '%Starbucks%' AND T1.state = 'TX';", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1146", "db_id": "yelp", "question": "List all the reviews by Michelle for Italian restaurant", "gold_sql": "SELECT t4.text FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN review AS t4 ON t4.business_id = t1.business_id JOIN USER AS t5 ON t5.user_id = t4.user_id WHERE t2.category_name = \"Italian\" AND t3.category_name = \"category_category_name1\" AND t5.name = \"Michelle\";", "raw_output": "SELECT T1.rid FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T1.business_id = T3.business_id WHERE T2.name = 'Michelle' AND T3.category_name = 'Italian';", "predicted_sql": "SELECT T1.rid FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T1.business_id = T3.business_id WHERE T2.name = 'Michelle' AND T3.category_name = 'Italian';", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 71, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3.category_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1152", "db_id": "yelp", "question": "List all businesses that are restaurant in Pennsylvania .", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.state = \"Pennsylvania\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant' AND T1.state = 'Pennsylvania'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant' AND T1.state = 'Pennsylvania'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1233", "db_id": "yelp", "question": "which business has the most number of checkins", "gold_sql": "SELECT t1.name FROM checkin AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id GROUP BY t1.name ORDER BY SUM ( t2.count ) DESC LIMIT 1;", "raw_output": "SELECT business_id FROM checkin GROUP BY business_id ORDER BY count DESC LIMIT 1", "predicted_sql": "SELECT business_id FROM checkin GROUP BY business_id ORDER BY count DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_others:1240", "db_id": "yelp", "question": "How many Egyptian restaurant are there in Edinburgh ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Edinburgh\" AND t2.category_name = \"restaurant\" AND t3.category_name = \"Egyptian\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Egyptian' AND T1.city = 'Edinburgh'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Egyptian' AND T1.city = 'Edinburgh'", "generation_status": "ok", "prompt_tokens": 609, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1220", "db_id": "yelp", "question": "How many users have reviewed Irish Pub in Dallas ?", "gold_sql": "SELECT COUNT ( DISTINCT t4.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.city = \"Dallas\" AND t2.category_name = \"Irish Pub\";", "raw_output": "SELECT count(T1.user_id) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T1.business_id = T3.business WHERE T3.name = 'Irish Pub' AND T3.city = 'Dallas'", "predicted_sql": "SELECT count(T1.user_id) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T1.business_id = T3.business WHERE T3.name = 'Irish Pub' AND T3.city = 'Dallas'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3.business", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1196", "db_id": "yelp", "question": "how many users reviewed \" Sushi Too \" in Pittsburgh", "gold_sql": "SELECT COUNT ( DISTINCT t3.name ) FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t1.city = \"Pittsburgh\" AND t1.name = \"Sushi Too\";", "raw_output": "SELECT count(T1.user_id) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Sushi Too' AND T2.city = 'Pittsburgh'", "predicted_sql": "SELECT count(T1.user_id) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Sushi Too' AND T2.city = 'Pittsburgh'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1182", "db_id": "yelp", "question": "Find all reviews for businesses rated 2.5", "gold_sql": "SELECT t2.text FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.rating = 2.5;", "raw_output": "SELECT T1.rid FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T1.rating = 2.5", "predicted_sql": "SELECT T1.rid FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T1.rating = 2.5", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1225", "db_id": "yelp", "question": "Return me the number of businesses that are restaurant .", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t2.category_name = \"restaurant\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1157", "db_id": "yelp", "question": "Find all users who reviewed restaurant \" Mesa Grill \"", "gold_sql": "SELECT t4.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.name = \"Mesa Grill\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.user_id FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Mesa Grill'", "predicted_sql": "SELECT T1.user_id FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Mesa Grill'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5665", "db_id": "customers_and_products_contacts", "question": "Show the names of customers who use Credit Card payment method and have more than 2 orders.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING count(*) > 2", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_name HAVING count(*) > 2", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_name HAVING count(*) > 2", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1212", "db_id": "yelp", "question": "How many reviews does \" Acacia Cafe \" have ?", "gold_sql": "SELECT review_count FROM business WHERE name = \"Acacia Cafe\";", "raw_output": "SELECT SUM(T1.rating) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business WHERE T2.name = 'Acacia Cafe'", "predicted_sql": "SELECT SUM(T1.rating) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business WHERE T2.name = 'Acacia Cafe'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.business", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1166", "db_id": "yelp", "question": "List all the Seafood restaurant in \" Los Angeles \"", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"Seafood\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM category AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Los Angeles' AND T1.category_name = 'Seafood'", "predicted_sql": "SELECT T1.business_id FROM category AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Los Angeles' AND T1.category_name = 'Seafood'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1160", "db_id": "yelp", "question": "Which restaurant in Dallas were reviewed by user Patrick ?", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.city = \"Dallas\" AND t2.category_name = \"restaurant\" AND t4.name = \"Patrick\";", "raw_output": "SELECT T1.name FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user WHERE T1.city = 'Dallas' AND T3.name = 'Patrick'", "predicted_sql": "SELECT T1.name FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user WHERE T1.city = 'Dallas' AND T3.name = 'Patrick'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3.user", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1241", "db_id": "yelp", "question": "Find users whose average review rating is below 3", "gold_sql": "SELECT t2.name FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id GROUP BY t2.name HAVING AVG ( t1.rating ) < 3;", "raw_output": "SELECT T1.user_id FROM user AS T1 INNER JOIN review AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING AVG(T2.rating) < 3", "predicted_sql": "SELECT T1.user_id FROM user AS T1 INNER JOIN review AS T2 ON T1.user_id = T2.user_id GROUP BY T1.user_id HAVING AVG(T2.rating) < 3", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1159", "db_id": "yelp", "question": "Find all restaurant reviewed by Patrick in \" Dallas \"", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.city = \"Dallas\" AND t2.category_name = \"restaurant\" AND t4.name = \"Patrick\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T3.name = 'Patrick' AND T1.city = 'Dallas'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T3.name = 'Patrick' AND T1.city = 'Dallas'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 71, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1243", "db_id": "yelp", "question": "Find the business which has the most number of categories", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id GROUP BY t1.name ORDER BY COUNT ( DISTINCT t2.category_name ) DESC LIMIT 1;", "raw_output": "SELECT T1.business_id FROM category AS T1 GROUP BY T1.business_id ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.business_id FROM category AS T1 GROUP BY T1.business_id ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_others:1178", "db_id": "yelp", "question": "List all users who reviewed businesses that are restaurant .", "gold_sql": "SELECT t4.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.user_id FROM review AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant'", "predicted_sql": "SELECT T1.user_id FROM review AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1234", "db_id": "yelp", "question": "which neighbourhood has the most number of businesses in Madison", "gold_sql": "SELECT t1.neighbourhood_name FROM neighbourhood AS t1 JOIN business AS t2 ON t1.business_id = t2.business_id WHERE t2.city = \"Madison\" GROUP BY t1.neighbourhood_name ORDER BY COUNT ( DISTINCT t2.name ) DESC LIMIT 1;", "raw_output": "SELECT T2.neighbourhood_name FROM business AS T1 INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T1.city = 'Madison' GROUP BY T2.neighbourhood_name ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T2.neighbourhood_name FROM business AS T1 INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T1.city = 'Madison' GROUP BY T2.neighbourhood_name ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.neighbourhood_name", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_others:1237", "db_id": "yelp", "question": "Find all restaurant with Valet Service in Dallas Texas", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t1.state = \"Texas\" AND t2.category_name = \"Valet Service\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T3.neighbourhood_name = 'Valet Service' AND T1.state = 'TX'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T3.neighbourhood_name = 'Valet Service' AND T1.state = 'TX'", "generation_status": "ok", "prompt_tokens": 610, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1171", "db_id": "yelp", "question": "What neighbourhood is restaurant \" Flat Top Grill \" in ?", "gold_sql": "SELECT t1.neighbourhood_name FROM category AS t3 JOIN business AS t2 ON t3.business_id = t2.business_id JOIN neighbourhood AS t1 ON t1.business_id = t2.business_id WHERE t2.name = \"Flat Top Grill\" AND t3.category_name = \"category_category_name0\";", "raw_output": "SELECT T2.neighbourhood_name FROM business AS T1 INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T1.name = 'Flat Top Grill'", "predicted_sql": "SELECT T2.neighbourhood_name FROM business AS T1 INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T1.name = 'Flat Top Grill'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.neighbourhood_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1145", "db_id": "yelp", "question": "list all the businesses which Niloofar rated 5", "gold_sql": "SELECT t1.name FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t2.rating = 5 AND t3.name = \"Niloofar\";", "raw_output": "SELECT T1.business_id FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar' AND T1.rating = 5", "predicted_sql": "SELECT T1.business_id FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar' AND T1.rating = 5", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1142", "db_id": "yelp", "question": "find all cities which has a \" Taj Mahal \" restaurant", "gold_sql": "SELECT t1.city FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Taj Mahal\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT DISTINCT T1.city FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Taj Mahal'", "predicted_sql": "SELECT DISTINCT T1.city FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Taj Mahal'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1174", "db_id": "yelp", "question": "Find all users who have written tips about businesses in Dallas", "gold_sql": "SELECT t3.name FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t1.city = \"Dallas\";", "raw_output": "SELECT T1.user_id FROM user AS T1 INNER JOIN tip AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T2.business_id = T3.business WHERE T3.city = 'Dallas'", "predicted_sql": "SELECT T1.user_id FROM user AS T1 INNER JOIN tip AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T2.business_id = T3.business WHERE T3.city = 'Dallas'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3.business", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1167", "db_id": "yelp", "question": "Find all restaurant that serve Seafood in \" Los Angeles \"", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"Seafood\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Seafood' AND T1.city = 'Los Angeles'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Seafood' AND T1.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1176", "db_id": "yelp", "question": "Find the users who have given tips on Pet Groomers", "gold_sql": "SELECT t4.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN tip AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t2.category_name = \"Pet Groomers\";", "raw_output": "SELECT T1.user_id FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN category AS T3 ON T2.business_id = T3.business_id WHERE T3.category_name = 'Pet Groomers'", "predicted_sql": "SELECT T1.user_id FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN category AS T3 ON T2.business_id = T3.business_id WHERE T3.category_name = 'Pet Groomers'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1199", "db_id": "yelp", "question": "What is the total likes on tips from Niloofar", "gold_sql": "SELECT SUM ( t1.likes ) FROM USER AS t2 JOIN tip AS t1 ON t2.user_id = t1.user_id WHERE t2.name = \"Niloofar\";", "raw_output": "SELECT SUM(T1.likes) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar'", "predicted_sql": "SELECT SUM(T1.likes) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1154", "db_id": "yelp", "question": "What are all the breweries in \" Los Angeles \" ?", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"breweries\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Los Angeles' AND T2.name LIKE '%brewery%';", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Los Angeles' AND T2.name LIKE '%brewery%';", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1164", "db_id": "yelp", "question": "Find all businesses in Texas with a rating below 2", "gold_sql": "SELECT name FROM business WHERE rating < 2 AND state = \"Texas\";", "raw_output": "SELECT T1.business_id FROM business AS T1 WHERE T1.state = 'TX' AND T1.rating < 2", "predicted_sql": "SELECT T1.business_id FROM business AS T1 WHERE T1.state = 'TX' AND T1.rating < 2", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1136", "db_id": "yelp", "question": "Find all states in which there is a Whataburger", "gold_sql": "SELECT state FROM business WHERE name = \"Whataburger\";", "raw_output": "SELECT DISTINCT T1.state FROM business AS T1 WHERE T1.name LIKE '%Whataburger'", "predicted_sql": "SELECT DISTINCT T1.state FROM business AS T1 WHERE T1.name LIKE '%Whataburger'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5659", "db_id": "customers_and_products_contacts", "question": "Show the names of customers who have both an order in completed status and an order in part status.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Customer_Orders AS T3 ON T1.customer_id = T3.customer_id WHERE T2.order_status_code = 'Completed' AND T3.order_status_code = 'Part';", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id INNER JOIN Customer_Orders AS T3 ON T1.customer_id = T3.customer_id WHERE T2.order_status_code = 'Completed' AND T3.order_status_code = 'Part';", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 83, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1138", "db_id": "yelp", "question": "Find the cities of businesses rated below 1.5", "gold_sql": "SELECT city FROM business WHERE rating < 1.5;", "raw_output": "SELECT DISTINCT T1.city FROM business AS T1 WHERE T1.rating < 1.5", "predicted_sql": "SELECT DISTINCT T1.city FROM business AS T1 WHERE T1.rating < 1.5", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1158", "db_id": "yelp", "question": "List the addresses of all Walmart in \" Los Angeles \"", "gold_sql": "SELECT full_address FROM business WHERE city = \"Los Angeles\" AND name = \"Walmart\";", "raw_output": "SELECT T1.full_address FROM business AS T1 INNER JOIN city AS T2 ON T1.city = T2.city WHERE T1.name = 'Walmart' AND T1.city = 'Los Angeles'", "predicted_sql": "SELECT T1.full_address FROM business AS T1 INNER JOIN city AS T2 ON T1.city = T2.city WHERE T1.name = 'Walmart' AND T1.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: city", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1141", "db_id": "yelp", "question": "List all the restaurant rated more than 3.5", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.rating > 3.5 AND t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.name FROM business AS T1 WHERE T1.rating > 3.5", "predicted_sql": "SELECT T1.name FROM business AS T1 WHERE T1.rating > 3.5", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5660", "db_id": "customers_and_products_contacts", "question": "Show the name, phone, and payment method code for all customers in descending order of customer number.", "gold_sql": "SELECT customer_name , customer_phone , payment_method_code FROM customers ORDER BY customer_number DESC", "raw_output": "SELECT T1.customer_name, T1.customer_phone, T1.payment_method_code FROM Customers AS T1 ORDER BY T1.customer_number DESC", "predicted_sql": "SELECT T1.customer_name, T1.customer_phone, T1.payment_method_code FROM Customers AS T1 ORDER BY T1.customer_number DESC", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_others:1242", "db_id": "yelp", "question": "Find the business with the most number of reviews in April", "gold_sql": "SELECT t1.name FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t2.month = \"April\" GROUP BY t1.name ORDER BY COUNT ( DISTINCT t2.text ) DESC LIMIT 1;", "raw_output": "SELECT T1.business_id FROM business AS T1 JOIN review AS T2 ON T1.business_id = T2.business_id WHERE T2.month = 'April' GROUP BY T1.business_id ORDER BY COUNT(T2.rid) DESC LIMIT 1", "predicted_sql": "SELECT T1.business_id FROM business AS T1 JOIN review AS T2 ON T1.business_id = T2.business_id WHERE T2.month = 'April' GROUP BY T1.business_id ORDER BY COUNT(T2.rid) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_others:1168", "db_id": "yelp", "question": "Find all reviews by Patrick with a rating above 4", "gold_sql": "SELECT t1.text FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id WHERE t1.rating > 4 AND t2.name = \"Patrick\";", "raw_output": "SELECT T1.rating FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Patrick' AND T1.rating > 4", "predicted_sql": "SELECT T1.rating FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Patrick' AND T1.rating > 4", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1238", "db_id": "yelp", "question": "Find all Italian restaurant in the Meadowood neighbourhood of Madison", "gold_sql": "SELECT t1.name FROM category AS t3 JOIN business AS t1 ON t3.business_id = t1.business_id JOIN category AS t4 ON t4.business_id = t1.business_id JOIN neighbourhood AS t2 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t3.category_name = \"Italian\" AND t4.category_name = \"restaurant\" AND t2.neighbourhood_name = \"Meadowood\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T2.category_name = 'Italian' AND T3.neighbourhood_name = 'Meadowood' AND T1.city = 'Madison'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T1.business_id = T3.business_id WHERE T2.category_name = 'Italian' AND T3.neighbourhood_name = 'Meadowood' AND T1.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 87, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1228", "db_id": "yelp", "question": "Find the total checkins in \" Brighton Heights \" neighbourhood", "gold_sql": "SELECT SUM ( t3.count ) FROM checkin AS t3 JOIN business AS t1 ON t3.business_id = t1.business_id JOIN neighbourhood AS t2 ON t2.business_id = t1.business_id WHERE t2.neighbourhood_name = \"Brighton Heights\";", "raw_output": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN neighbourhood AS T2 ON T1.business_id = T2.business_id WHERE T2.neighbourhood_name = 'Brighton Heights'", "predicted_sql": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN neighbourhood AS T2 ON T1.business_id = T2.business_id WHERE T2.neighbourhood_name = 'Brighton Heights'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1219", "db_id": "yelp", "question": "How many Target are there in \" Los Angeles \" ?", "gold_sql": "SELECT COUNT ( DISTINCT business_id ) FROM business WHERE city = \"Los Angeles\" AND name = \"Target\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 WHERE city = 'Los Angeles'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 WHERE city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1139", "db_id": "yelp", "question": "Find all cities which has a \" Taj Mahal \" .", "gold_sql": "SELECT city FROM business WHERE name = \"Taj Mahal\";", "raw_output": "SELECT DISTINCT T1.city FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Taj Mahal'", "predicted_sql": "SELECT DISTINCT T1.city FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Taj Mahal'", "generation_status": "ok", "prompt_tokens": 611, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1177", "db_id": "yelp", "question": "Find all tips for \" Cafe Zinho \" in Texas .", "gold_sql": "SELECT t2.text FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Cafe Zinho\" AND t1.state = \"Texas\";", "raw_output": "SELECT T1.text FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho' AND T2.state = 'Texas'", "predicted_sql": "SELECT T1.text FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho' AND T2.state = 'Texas'", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1162", "db_id": "yelp", "question": "Find all Bars reviewed by Patrick with at least 3 stars", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.rating >= 3 AND t2.category_name = \"Bars\" AND t4.name = \"Patrick\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T3.name = 'Patrick' AND T2.rating >= 3 AND T1.category_name = 'Bar'", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T3.name = 'Patrick' AND T2.rating >= 3 AND T1.category_name = 'Bar'", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.category_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1186", "db_id": "yelp", "question": "What is the number of escape games in \" Madison \" ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t2.category_name = \"escape games\";", "raw_output": "SELECT SUM(T1.bid) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "predicted_sql": "SELECT SUM(T1.bid) FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'escape games' AND T1.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1144", "db_id": "yelp", "question": "list all the businesses which have a review by Niloofar", "gold_sql": "SELECT t1.name FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t3.name = \"Niloofar\";", "raw_output": "SELECT T1.business_id FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar'", "predicted_sql": "SELECT T1.business_id FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar'", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1133", "db_id": "yelp", "question": "List all the businesses with more than 4.5 stars", "gold_sql": "SELECT name FROM business WHERE rating > 4.5;", "raw_output": "SELECT T1.business_id FROM business AS T1 WHERE T1.rating > 4.5", "predicted_sql": "SELECT T1.business_id FROM business AS T1 WHERE T1.rating > 4.5", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1202", "db_id": "yelp", "question": "How many tips has Michelle written in 2010", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN tip AS t1 ON t2.user_id = t1.user_id WHERE t1.year = 2010 AND t2.name = \"Michelle\";", "raw_output": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.year = 2010", "predicted_sql": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.year = 2010", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1170", "db_id": "yelp", "question": "Find all Dallas restaurant with a rating above 4.5", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t1.rating > 4.5 AND t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.name FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Dallas' AND T2.rating > 4.5", "predicted_sql": "SELECT T1.name FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Dallas' AND T2.rating > 4.5", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1140", "db_id": "yelp", "question": "List all the reviews which rated a business less than 1", "gold_sql": "SELECT text FROM review WHERE rating < 1;", "raw_output": "SELECT T1.rid FROM review AS T1 WHERE T1.rating < 1", "predicted_sql": "SELECT T1.rid FROM review AS T1 WHERE T1.rating < 1", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1188", "db_id": "yelp", "question": "find the number of restaurant rated more than 3.5", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.rating > 3.5 AND t2.category_name = \"restaurant\";", "raw_output": "SELECT count(*) FROM business WHERE rating > 3.5", "predicted_sql": "SELECT count(*) FROM business WHERE rating > 3.5", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1227", "db_id": "yelp", "question": "Return me the number of tips that are written by Michelle .", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN tip AS t1 ON t2.user_id = t1.user_id WHERE t2.name = \"Michelle\";", "raw_output": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle'", "predicted_sql": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle'", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1198", "db_id": "yelp", "question": "How many tips have been written in 2015", "gold_sql": "SELECT COUNT ( DISTINCT text ) FROM tip WHERE YEAR = 2015;", "raw_output": "SELECT count(T1.tip_id) FROM tip AS T1 WHERE T1.year = 2015", "predicted_sql": "SELECT count(T1.tip_id) FROM tip AS T1 WHERE T1.year = 2015", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5664", "db_id": "customers_and_products_contacts", "question": "Show the customer name, customer address city, date from, and date to for each customer address history.", "gold_sql": "SELECT T2.customer_name , T3.city , T1.date_from , T1.date_to FROM customer_address_history AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id JOIN addresses AS T3 ON T1.address_id = T3.address_id", "raw_output": "SELECT T1.customer_name, T2.city, T3.date_from, T3.date_to FROM Customers AS T1 JOIN Customer_Address_History AS T3 ON T1.customer_id = T3.customer_id JOIN Addresses AS T2 ON T3.address_id = T2.address_id", "predicted_sql": "SELECT T1.customer_name, T2.city, T3.date_from, T3.date_to FROM Customers AS T1 JOIN Customer_Address_History AS T3 ON T1.customer_id = T3.customer_id JOIN Addresses AS T2 ON T3.address_id = T2.address_id", "generation_status": "ok", "prompt_tokens": 612, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1217", "db_id": "yelp", "question": "How many businesses has Michelle reviewed in 2010 ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t2.year = 2010 AND t3.name = \"Michelle\";", "raw_output": "SELECT count(T1.business_id) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.year = 2010", "predicted_sql": "SELECT count(T1.business_id) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.year = 2010", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1226", "db_id": "yelp", "question": "Return me the number of cities that has \" Panda Express \" .", "gold_sql": "SELECT COUNT ( DISTINCT city ) FROM business WHERE name = \"Panda Express\";", "raw_output": "SELECT count(DISTINCT T1.city) FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Panda Express'", "predicted_sql": "SELECT count(DISTINCT T1.city) FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Panda Express'", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1231", "db_id": "yelp", "question": "How many neighbourhoods have a business with rating 5 in Madison ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.neighbourhood_name ) FROM neighbourhood AS t1 JOIN business AS t2 ON t1.business_id = t2.business_id WHERE t2.city = \"Madison\" AND t2.rating = 5;", "raw_output": "SELECT count(T1.neighbourhood_name) FROM neighbourhood AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.rating = 5 AND T2.city = 'Madison'", "predicted_sql": "SELECT count(T1.neighbourhood_name) FROM neighbourhood AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.rating = 5 AND T2.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1189", "db_id": "yelp", "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \"", "gold_sql": "SELECT SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"restaurant\" AND t3.category_name = \"Moroccan\";", "raw_output": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T2.business_id = T3.business_id WHERE T3.neighbourhood_name = 'Moroccan' AND T2.city = 'Los Angeles'", "predicted_sql": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T2.business_id = T3.business_id WHERE T3.neighbourhood_name = 'Moroccan' AND T2.city = 'Los Angeles'", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1210", "db_id": "yelp", "question": "How many restaurant are there in the Hazelwood district of Dallas ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t3 JOIN business AS t1 ON t3.business_id = t1.business_id JOIN neighbourhood AS t2 ON t2.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t3.category_name = \"restaurant\" AND t2.neighbourhood_name = \"Hazelwood\";", "raw_output": "SELECT count(T1.business_id) FROM neighbourhood AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business WHERE T2.city = 'Dallas' AND T1.neighbourhood_name = 'Hazelwood'", "predicted_sql": "SELECT count(T1.business_id) FROM neighbourhood AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business WHERE T2.city = 'Dallas' AND T1.neighbourhood_name = 'Hazelwood'", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.business", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1197", "db_id": "yelp", "question": "What is the number of restaurant in Pittsburgh rated 4.5", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Pittsburgh\" AND t1.rating = 4.5 AND t2.category_name = \"restaurant\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 WHERE T1.city = 'Pittsburgh' AND T1.rating = 4.5", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 WHERE T1.city = 'Pittsburgh' AND T1.rating = 4.5", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1200", "db_id": "yelp", "question": "What is the total likes on tips about \" Cafe Zinho \"", "gold_sql": "SELECT SUM ( t2.likes ) FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Cafe Zinho\";", "raw_output": "SELECT SUM(T1.likes) FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho'", "predicted_sql": "SELECT SUM(T1.likes) FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho'", "generation_status": "ok", "prompt_tokens": 613, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1216", "db_id": "yelp", "question": "How many reviews has Michelle written in March 2014 ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id WHERE t1.month = \"March\" AND t1.year = 2014 AND t2.name = \"Michelle\";", "raw_output": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.month = 'Mar' AND T1.year = 2014", "predicted_sql": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.month = 'Mar' AND T1.year = 2014", "generation_status": "ok", "prompt_tokens": 614, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1192", "db_id": "yelp", "question": "find the total checkins in Italian Delis in each state on Sunday", "gold_sql": "SELECT t1.state , SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t2.category_name = \"Italian\" AND t3.category_name = \"Delis\" AND t4.day = \"Sunday\" GROUP BY t1.state;", "raw_output": "SELECT T1.state, SUM(T2.count) FROM business AS T1 JOIN checkin AS T2 ON T1.business_id = T2.business_id JOIN business AS T3 ON T3.business_id = T1.business_id JOIN business AS T4 ON T4.business_id = T1.business_id WHERE T1.category_name = 'Italian Delis' AND T2.day = 'Sunday' GROUP BY T1.state", "predicted_sql": "SELECT T1.state, SUM(T2.count) FROM business AS T1 JOIN checkin AS T2 ON T1.business_id = T2.business_id JOIN business AS T3 ON T3.business_id = T1.business_id JOIN business AS T4 ON T4.business_id = T1.business_id WHERE T1.category_name = 'Italian Delis' AND T2.day = 'Sunday' GROUP BY T1.state", "generation_status": "ok", "prompt_tokens": 614, "generated_tokens": 105, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.category_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1193", "db_id": "yelp", "question": "How many reviews has Niloofar written in 2015", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN review AS t1 ON t2.user_id = t1.user_id WHERE t1.year = 2015 AND t2.name = \"Niloofar\";", "raw_output": "SELECT COUNT(T1.rid) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar' AND T1.year = 2015", "predicted_sql": "SELECT COUNT(T1.rid) FROM review AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Niloofar' AND T1.year = 2015", "generation_status": "ok", "prompt_tokens": 614, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1235", "db_id": "yelp", "question": "Find all Mexican restaurant in Dallas with at least 3.5 stars", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t1.rating > 3.5 AND t2.category_name = \"Mexican\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Mexican' AND T1.city = 'Dallas' AND T1.rating >= 3.5", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Mexican' AND T1.city = 'Dallas' AND T1.rating >= 3.5", "generation_status": "ok", "prompt_tokens": 614, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1207", "db_id": "yelp", "question": "How many Bars in Dallas have a rating above 3.5 ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t1.rating > 3.5 AND t2.category_name = \"Bars\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN city AS T2 ON T1.city = T2.city WHERE T1.category = 'Bars' AND T1.rating > 3.5 AND T1.city = 'Dallas'", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN city AS T2 ON T1.city = T2.city WHERE T1.category = 'Bars' AND T1.rating > 3.5 AND T1.city = 'Dallas'", "generation_status": "ok", "prompt_tokens": 614, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such table: city", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1236", "db_id": "yelp", "question": "Find all Mexican restaurant in Dallas with a rating above 3.5", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t1.rating > 3.5 AND t2.category_name = \"Mexican\" AND t3.category_name = \"restaurant\";", "raw_output": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Mexican' AND T1.city = 'Dallas' AND T1.rating > 3.5", "predicted_sql": "SELECT T1.business_id FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Mexican' AND T1.city = 'Dallas' AND T1.rating > 3.5", "generation_status": "ok", "prompt_tokens": 614, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1223", "db_id": "yelp", "question": "Find the number of reviews on businesses located in \" South Summerlin \" neighbourhood", "gold_sql": "SELECT COUNT ( DISTINCT t3.text ) FROM neighbourhood AS t1 JOIN business AS t2 ON t1.business_id = t2.business_id JOIN review AS t3 ON t3.business_id = t2.business_id WHERE t1.neighbourhood_name = \"South Summerlin\";", "raw_output": "SELECT SUM(T1.review_count) FROM business AS T1 INNER JOIN neighbourhood AS T2 ON T1.business_id = T2.business_id WHERE T2.neighbourhood_name = 'South Summerlin'", "predicted_sql": "SELECT SUM(T1.review_count) FROM business AS T1 INNER JOIN neighbourhood AS T2 ON T1.business_id = T2.business_id WHERE T2.neighbourhood_name = 'South Summerlin'", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1195", "db_id": "yelp", "question": "What is the number of checkins for \" Cafe Zinho \" on Friday", "gold_sql": "SELECT t2.count FROM checkin AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Cafe Zinho\" AND t2.day = \"Friday\";", "raw_output": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = ' Cafe Zinho' AND T1.day = 'Friday'", "predicted_sql": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = ' Cafe Zinho' AND T1.day = 'Friday'", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1213", "db_id": "yelp", "question": "Find the average number of checkins in restaurant \" Barrio Cafe \" per day", "gold_sql": "SELECT AVG ( t3.count ) , t3.day FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN checkin AS t3 ON t3.business_id = t1.business_id WHERE t1.name = \"Barrio Cafe\" AND t2.category_name = \"restaurant\" GROUP BY t3.day;", "raw_output": "SELECT AVG(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Barrio Cafe';", "predicted_sql": "SELECT AVG(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Barrio Cafe';", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1191", "db_id": "yelp", "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \" per day", "gold_sql": "SELECT t4.day , SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"Moroccan\" AND t3.category_name = \"restaurant\" GROUP BY t4.day;", "raw_output": "SELECT T1.day, SUM(T2.count) FROM checkin AS T1 INNER JOIN business AS T3 ON T1.business_id = T3.business_id INNER JOIN category AS T4 ON T3.business_id = T4.business_id WHERE T3.city = 'Los Angeles' AND T4.category_name = 'Moroccan' GROUP BY T1.day", "predicted_sql": "SELECT T1.day, SUM(T2.count) FROM checkin AS T1 INNER JOIN business AS T3 ON T1.business_id = T3.business_id INNER JOIN category AS T4 ON T3.business_id = T4.business_id WHERE T3.city = 'Los Angeles' AND T4.category_name = 'Moroccan' GROUP BY T1.day", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 88, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.count", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1147", "db_id": "yelp", "question": "find the number of reviews written for \" Cafe Zinho \" restaurant in Texas", "gold_sql": "SELECT COUNT ( DISTINCT t3.text ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id WHERE t1.name = \"Cafe Zinho\" AND t1.state = \"Texas\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho' AND T2.state = 'TX'", "predicted_sql": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho' AND T2.state = 'TX'", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1190", "db_id": "yelp", "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \" on Friday", "gold_sql": "SELECT SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t2.category_name = \"Moroccan\" AND t3.category_name = \"restaurant\" AND t4.day = \"Friday\";", "raw_output": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T2.business_id = T3.business_id WHERE T2.category_name = 'Moroccan' AND T2.city = 'Los Angeles' AND T1.day = 'Friday'", "predicted_sql": "SELECT SUM(T1.count) FROM checkin AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN neighbourhood AS T3 ON T2.business_id = T3.business_id WHERE T2.category_name = 'Moroccan' AND T2.city = 'Los Angeles' AND T1.day = 'Friday'", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 86, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.category_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_others:1137", "db_id": "yelp", "question": "Find all cities in which there is a restaurant called \" MGM Grand Buffet \"", "gold_sql": "SELECT t1.city FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"MGM Grand Buffet\" AND t2.category_name = \"category_category_name0\";", "raw_output": "SELECT DISTINCT T1.city FROM business AS T1 WHERE T1.name = 'MGM Grand Buffet'", "predicted_sql": "SELECT DISTINCT T1.city FROM business AS T1 WHERE T1.name = 'MGM Grand Buffet'", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1214", "db_id": "yelp", "question": "How many businesses are there in the \" Stone Meadows \" neighbourhood in Madison ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM neighbourhood AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Madison\" AND t2.neighbourhood_name = \"Stone Meadows\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN neighbourhood AS T2 ON T1.business_id = T2.business_id INNER JOIN business AS T3 ON T3.city = 'Madison' WHERE T2.neighbourhood_name = 'Stone Meadows';", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN neighbourhood AS T2 ON T1.business_id = T2.business_id INNER JOIN business AS T3 ON T3.city = 'Madison' WHERE T2.neighbourhood_name = 'Stone Meadows';", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1208", "db_id": "yelp", "question": "How many people reviewed the restaurant \" Texas de Brazil \" in Dallas Texas ?", "gold_sql": "SELECT COUNT ( DISTINCT t4.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.city = \"Dallas\" AND t1.name = \"Texas de Brazil\" AND t1.state = \"Texas\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Texas de Brazil' AND T2.city = 'Dallas' AND T2.state = 'Texas'", "predicted_sql": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Texas de Brazil' AND T2.city = 'Dallas' AND T2.state = 'Texas'", "generation_status": "ok", "prompt_tokens": 615, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1150", "db_id": "yelp", "question": "List all the neighbourhoods with Italian restaurant rated less than 2.5 in Madison", "gold_sql": "SELECT t1.neighbourhood_name FROM category AS t3 JOIN business AS t2 ON t3.business_id = t2.business_id JOIN category AS t4 ON t4.business_id = t2.business_id JOIN neighbourhood AS t1 ON t1.business_id = t2.business_id WHERE t2.city = \"Madison\" AND t2.rating < 2.5 AND t3.category_name = \"Italian\" AND t4.category_name = \"restaurant\";", "raw_output": "SELECT T1.neighbourhood_name FROM neighbourhood AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN category AS T3 ON T2.business_id = T3.business_id INNER JOIN review AS T4 ON T2.business_id = T4.business_id WHERE T3.category_name = 'Italian' AND T2.rating < 2.5 AND T2.city = 'Madison'", "predicted_sql": "SELECT T1.neighbourhood_name FROM neighbourhood AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id INNER JOIN category AS T3 ON T2.business_id = T3.business_id INNER JOIN review AS T4 ON T2.business_id = T4.business_id WHERE T3.category_name = 'Italian' AND T2.rating < 2.5 AND T2.city = 'Madison'", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 104, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1209", "db_id": "yelp", "question": "How many people reviewed \" Bistro Di Napoli \" in 2015 ?", "gold_sql": "SELECT COUNT ( DISTINCT t3.name ) FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t1.name = \"Bistro Di Napoli\" AND t2.year = 2015;", "raw_output": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Bistro Di Napoli' AND T1.year = 2015", "predicted_sql": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Bistro Di Napoli' AND T1.year = 2015", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1180", "db_id": "yelp", "question": "List all users who reviewed businesses that are restaurant in 2010 .", "gold_sql": "SELECT t4.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t2.category_name = \"restaurant\" AND t3.year = 2010;", "raw_output": "SELECT T1.user_id FROM review AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant' AND T1.year = 2010", "predicted_sql": "SELECT T1.user_id FROM review AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'restaurant' AND T1.year = 2010", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1173", "db_id": "yelp", "question": "Find all reviews about \" Kabob Palace \" in year 2014", "gold_sql": "SELECT t2.text FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Kabob Palace\" AND t2.year = 2014;", "raw_output": "SELECT T1.rating FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Kabob Palace' AND T1.year = 2014", "predicted_sql": "SELECT T1.rating FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Kabob Palace' AND T1.year = 2014", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1206", "db_id": "yelp", "question": "How many Bars in \" Dallas \" have a rating above 3.5 ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Dallas\" AND t1.rating > 3.5 AND t2.category_name = \"Bars\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Dallas' AND T1.rating > 3.5", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.city = 'Dallas' AND T1.rating > 3.5", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1221", "db_id": "yelp", "question": "What is the average rating of reviews written in year 2014 ?", "gold_sql": "SELECT AVG ( rating ) FROM review WHERE YEAR = 2014;", "raw_output": "SELECT AVG(T1.rating) FROM review AS T1 WHERE T1.year = 2014", "predicted_sql": "SELECT AVG(T1.rating) FROM review AS T1 WHERE T1.year = 2014", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6934", "db_id": "tracking_orders", "question": "What are the invoice numbers created before 1989-09-03 or after 2007-12-25?", "gold_sql": "SELECT invoice_number FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "raw_output": "SELECT invoice_number FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "predicted_sql": "SELECT invoice_number FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "generation_status": "ok", "prompt_tokens": 616, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5667", "db_id": "customers_and_products_contacts", "question": "Show the product type and name for the products with price higher than 1000 or lower than 500.", "gold_sql": "SELECT product_type_code , product_name FROM products WHERE product_price > 1000 OR product_price < 500", "raw_output": "SELECT T1.product_type_code, T1.product_name FROM Products AS T1 WHERE T1.product_price > 1000 OR T1.product_price < 500", "predicted_sql": "SELECT T1.product_type_code, T1.product_name FROM Products AS T1 WHERE T1.product_price > 1000 OR T1.product_price < 500", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1201", "db_id": "yelp", "question": "What is the total likes on tips from Niloofar about \" Cafe Zinho \"", "gold_sql": "SELECT SUM ( t2.likes ) FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t1.name = \"Cafe Zinho\" AND t3.name = \"Niloofar\";", "raw_output": "SELECT SUM(T1.likes) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T1.business_id = T3.business_id WHERE T2.name = 'Niloofar' AND T3.name = 'Cafe Zinho'", "predicted_sql": "SELECT SUM(T1.likes) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id INNER JOIN business AS T3 ON T1.business_id = T3.business_id WHERE T2.name = 'Niloofar' AND T3.name = 'Cafe Zinho'", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6906", "db_id": "tracking_orders", "question": "Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed BETWEEN '2009-01-01' AND '2010-01-01'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed BETWEEN '2009-01-01' AND '2010-01-01'", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1175", "db_id": "yelp", "question": "Find all cities in Texas in which there is a restaurant called \" MGM Grand Buffet \"", "gold_sql": "SELECT t1.city FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"MGM Grand Buffet\" AND t1.state = \"Texas\" AND t2.category_name = \"restaurant\";", "raw_output": "SELECT T1.city FROM business AS T1 WHERE T1.state = 'TX' AND T1.name = 'MGM Grand Buffet'", "predicted_sql": "SELECT T1.city FROM business AS T1 WHERE T1.state = 'TX' AND T1.name = 'MGM Grand Buffet'", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6908", "db_id": "tracking_orders", "question": "What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??", "gold_sql": "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\"", "raw_output": "SELECT DISTINCT T1.product_id FROM Products AS T1 INNER JOIN Order_Items AS T2 ON T1.product_id = T2.product_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Orders AS T4 ON T3.order_id = T4.order_id WHERE T4.date_order_placed BETWEEN '1975-01-01' AND '1976-01-01'", "predicted_sql": "SELECT DISTINCT T1.product_id FROM Products AS T1 INNER JOIN Order_Items AS T2 ON T1.product_id = T2.product_id INNER JOIN Order_Items AS T3 ON T2.order_id = T3.order_id INNER JOIN Orders AS T4 ON T3.order_id = T4.order_id WHERE T4.date_order_placed BETWEEN '1975-01-01' AND '1976-01-01'", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 113, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1153", "db_id": "yelp", "question": "Find all the reviews for all Pet Groomers with more than 100 reviews", "gold_sql": "SELECT t3.text FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id WHERE t1.review_count > 100 AND t2.category_name = \"Pet Groomers\";", "raw_output": "SELECT T1.rid FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Pet Groomers' AND T2.review_count > 100", "predicted_sql": "SELECT T1.rid FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.category_name = 'Pet Groomers' AND T2.review_count > 100", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.category_name", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:6933", "db_id": "tracking_orders", "question": "Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.", "gold_sql": "SELECT invoice_number FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "raw_output": "SELECT invoice_number FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "predicted_sql": "SELECT invoice_number FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1172", "db_id": "yelp", "question": "Find all tips about \" Vintner Grill \" that received more than 9 likes", "gold_sql": "SELECT t2.text FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Vintner Grill\" AND t2.likes > 9;", "raw_output": "SELECT T1.text FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Vintner Grill' AND T1.likes > 9", "predicted_sql": "SELECT T1.text FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Vintner Grill' AND T1.likes > 9", "generation_status": "ok", "prompt_tokens": 617, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6936", "db_id": "tracking_orders", "question": "What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?", "gold_sql": "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "raw_output": "SELECT DISTINCT invoice_details FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "predicted_sql": "SELECT DISTINCT invoice_details FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1218", "db_id": "yelp", "question": "How many businesses in \" San Diego \" has Christine reviewed in 2010 ?", "gold_sql": "SELECT COUNT ( DISTINCT t1.name ) FROM review AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t1.city = \"San Diego\" AND t2.year = 2010 AND t3.name = \"Christine\";", "raw_output": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T1.city = 'San Diego' AND T2.user_id = (SELECT user_id FROM user WHERE name = 'Christine') AND T2.year = 2010", "predicted_sql": "SELECT count(T1.business_id) FROM business AS T1 INNER JOIN review AS T2 ON T1.business_id = T2.business_id INNER JOIN user AS T3 ON T2.user_id = T3.user_id WHERE T1.city = 'San Diego' AND T2.user_id = (SELECT user_id FROM user WHERE name = 'Christine') AND T2.year = 2010", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 98, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1203", "db_id": "yelp", "question": "Return me the number of tips that are written by Michelle in 2010 .", "gold_sql": "SELECT COUNT ( DISTINCT t1.text ) FROM USER AS t2 JOIN tip AS t1 ON t2.user_id = t1.user_id WHERE t1.year = 2010 AND t2.name = \"Michelle\";", "raw_output": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.year = 2010", "predicted_sql": "SELECT count(T1.tip_id) FROM tip AS T1 INNER JOIN user AS T2 ON T1.user_id = T2.user_id WHERE T2.name = 'Michelle' AND T1.year = 2010", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1222", "db_id": "yelp", "question": "How many people reviewed restaurant \" Vintner Grill \" in 2010 ?", "gold_sql": "SELECT COUNT ( DISTINCT t4.name ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN review AS t3 ON t3.business_id = t1.business_id JOIN USER AS t4 ON t4.user_id = t3.user_id WHERE t1.name = \"Vintner Grill\" AND t2.category_name = \"category_category_name0\" AND t3.year = 2010;", "raw_output": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Vintner Grill' AND T1.year = 2010", "predicted_sql": "SELECT count(T1.rid) FROM review AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Vintner Grill' AND T1.year = 2010", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1181", "db_id": "yelp", "question": "Find all the tips from a user who has written a review in 2012", "gold_sql": "SELECT t2.text FROM USER AS t3 JOIN review AS t1 ON t3.user_id = t1.user_id JOIN tip AS t2 ON t3.user_id = t2.user_id WHERE t1.year = 2012;", "raw_output": "SELECT T1.tip_id FROM tip AS T1 INNER JOIN review AS T2 ON T1.user_id = T2.user_id WHERE T2.year = 2012", "predicted_sql": "SELECT T1.tip_id FROM tip AS T1 INNER JOIN review AS T2 ON T1.user_id = T2.user_id WHERE T2.year = 2012", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1179", "db_id": "yelp", "question": "List all tips for \" Cafe Zinho \" in Pennsylvania in 2010 .", "gold_sql": "SELECT t2.text FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.name = \"Cafe Zinho\" AND t1.state = \"Pennsylvania\" AND t2.year = 2010;", "raw_output": "SELECT T1.text FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho' AND T2.state = 'Pennsylvania' AND T1.year = 2010", "predicted_sql": "SELECT T1.text FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Cafe Zinho' AND T2.state = 'Pennsylvania' AND T1.year = 2010", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1163", "db_id": "yelp", "question": "Find all users who have written tips for \" Barrio Cafe \" in 2015", "gold_sql": "SELECT t3.name FROM tip AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN USER AS t3 ON t3.user_id = t2.user_id WHERE t1.name = \"Barrio Cafe\" AND t2.year = 2015;", "raw_output": "SELECT T1.user_id FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Barrio Cafe' AND T1.year = 2015", "predicted_sql": "SELECT T1.user_id FROM tip AS T1 INNER JOIN business AS T2 ON T1.business_id = T2.business_id WHERE T2.name = 'Barrio Cafe' AND T1.year = 2015", "generation_status": "ok", "prompt_tokens": 618, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6905", "db_id": "tracking_orders", "question": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.", "gold_sql": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"", "raw_output": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed BETWEEN '2009-01-01' AND '2010-01-01'", "predicted_sql": "SELECT T1.customer_name FROM Customers AS T1 INNER JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed BETWEEN '2009-01-01' AND '2010-01-01'", "generation_status": "ok", "prompt_tokens": 619, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6935", "db_id": "tracking_orders", "question": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.", "gold_sql": "SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < \"1989-09-03\" OR invoice_date > \"2007-12-25\"", "raw_output": "SELECT DISTINCT invoice_details FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "predicted_sql": "SELECT DISTINCT invoice_details FROM Invoices WHERE invoice_date < '1989-09-03' OR invoice_date > '2007-12-25'", "generation_status": "ok", "prompt_tokens": 619, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:6907", "db_id": "tracking_orders", "question": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?", "gold_sql": "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\"", "raw_output": "SELECT DISTINCT T2.product_id FROM Orders AS T1 INNER JOIN Order_Items AS T3 ON T1.order_id = T3.order_id INNER JOIN Products AS T2 ON T3.product_id = T2.product_id WHERE T1.date_order_placed BETWEEN '1975-01-01' AND '1976-01-01'", "predicted_sql": "SELECT DISTINCT T2.product_id FROM Orders AS T1 INNER JOIN Order_Items AS T3 ON T1.order_id = T3.order_id INNER JOIN Products AS T2 ON T3.product_id = T2.product_id WHERE T1.date_order_placed BETWEEN '1975-01-01' AND '1976-01-01'", "generation_status": "ok", "prompt_tokens": 620, "generated_tokens": 91, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_others:1239", "db_id": "yelp", "question": "Find all Bars in \" Los Angeles \" with at least 30 reviews and average rating above 3 stars", "gold_sql": "SELECT t1.name FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id WHERE t1.city = \"Los Angeles\" AND t1.rating > 3 AND t1.review_count > 30 AND t2.category_name = \"Bars\";", "raw_output": "SELECT T1.name FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Los Angeles' AND T1.review_count >= 30 AND T1.rating > 3", "predicted_sql": "SELECT T1.name FROM business AS T1 INNER JOIN category AS T2 ON T1.business_id = T2.business_id WHERE T1.city = 'Los Angeles' AND T1.review_count >= 30 AND T1.rating > 3", "generation_status": "ok", "prompt_tokens": 622, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1508", "db_id": "insurance_and_eClaims", "question": "Sort the customer names in alphabetical order.", "gold_sql": "SELECT customer_details FROM customers ORDER BY customer_details", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 ORDER BY T1.Customer_Details;", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 ORDER BY T1.Customer_Details;", "generation_status": "ok", "prompt_tokens": 640, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1543", "db_id": "insurance_and_eClaims", "question": "How many distinct claim outcome codes are there?", "gold_sql": "SELECT count(DISTINCT claim_outcome_code) FROM claims_processing", "raw_output": "SELECT count(DISTINCT Claim_Outcome_Code) FROM Claims_Processing", "predicted_sql": "SELECT count(DISTINCT Claim_Outcome_Code) FROM Claims_Processing", "generation_status": "ok", "prompt_tokens": 641, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1544", "db_id": "insurance_and_eClaims", "question": "Count the number of distinct claim outcome codes.", "gold_sql": "SELECT count(DISTINCT claim_outcome_code) FROM claims_processing", "raw_output": "SELECT count(DISTINCT Claim_Outcome_Code) FROM Claims_Processing", "predicted_sql": "SELECT count(DISTINCT Claim_Outcome_Code) FROM Claims_Processing", "generation_status": "ok", "prompt_tokens": 641, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1545", "db_id": "insurance_and_eClaims", "question": "Which customer is associated with the latest policy?", "gold_sql": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT max(start_date) FROM policies)", "raw_output": "SELECT T1.Customer_ID FROM Policies AS T1 ORDER BY T1.Start_Date DESC LIMIT 1", "predicted_sql": "SELECT T1.Customer_ID FROM Policies AS T1 ORDER BY T1.Start_Date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 641, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1542", "db_id": "insurance_and_eClaims", "question": "Find the description of the claim status \"Open\".", "gold_sql": "SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = \"Open\"", "raw_output": "SELECT T2.Claim_Status_Description FROM Claims_Processing_Stages AS T2 WHERE T2.Claim_Status_Name = 'Open'", "predicted_sql": "SELECT T2.Claim_Status_Description FROM Claims_Processing_Stages AS T2 WHERE T2.Claim_Status_Name = 'Open'", "generation_status": "ok", "prompt_tokens": 642, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1525", "db_id": "insurance_and_eClaims", "question": "How many claim processing stages are there in total?", "gold_sql": "SELECT count(*) FROM claims_processing_stages", "raw_output": "SELECT COUNT(*) FROM Claims_Processing_Stages", "predicted_sql": "SELECT COUNT(*) FROM Claims_Processing_Stages", "generation_status": "ok", "prompt_tokens": 642, "generated_tokens": 10, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1546", "db_id": "insurance_and_eClaims", "question": "Find the customer who started a policy most recently.", "gold_sql": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT max(start_date) FROM policies)", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID ORDER BY T2.Start_Date DESC LIMIT 1", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID ORDER BY T2.Start_Date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 642, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1526", "db_id": "insurance_and_eClaims", "question": "Find the number of distinct stages in claim processing.", "gold_sql": "SELECT count(*) FROM claims_processing_stages", "raw_output": "SELECT COUNT(DISTINCT Claim_Stage_ID) FROM Claims_Processing_Stages", "predicted_sql": "SELECT COUNT(DISTINCT Claim_Stage_ID) FROM Claims_Processing_Stages", "generation_status": "ok", "prompt_tokens": 642, "generated_tokens": 18, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1529", "db_id": "insurance_and_eClaims", "question": "Find the names of customers whose name contains \"Diana\".", "gold_sql": "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\"", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 WHERE T1.Customer_Details LIKE '%Diana%';", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 WHERE T1.Customer_Details LIKE '%Diana%';", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1523", "db_id": "insurance_and_eClaims", "question": "Find the names of customers who have no policies associated.", "gold_sql": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1512", "db_id": "insurance_and_eClaims", "question": "Find the type code of the most frequently used policy.", "gold_sql": "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1541", "db_id": "insurance_and_eClaims", "question": "What is the description of the claim status \"Open\"?", "gold_sql": "SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = \"Open\"", "raw_output": "SELECT T2.Claim_Status_Description FROM Claims_Processing_Stages AS T1 JOIN Claims_Processing AS T3 ON T1.Claim_Stage_ID = T3.Claim_Stage_ID WHERE T1.Claim_Status_Name = 'Open'", "predicted_sql": "SELECT T2.Claim_Status_Description FROM Claims_Processing_Stages AS T1 JOIN Claims_Processing AS T3 ON T1.Claim_Stage_ID = T3.Claim_Stage_ID WHERE T1.Claim_Status_Name = 'Open'", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Claim_Status_Description", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1507", "db_id": "insurance_and_eClaims", "question": "List the names of all the customers in alphabetical order.", "gold_sql": "SELECT customer_details FROM customers ORDER BY customer_details", "raw_output": "SELECT Customer_Details FROM Customers ORDER BY Customer_Details;", "predicted_sql": "SELECT Customer_Details FROM Customers ORDER BY Customer_Details;", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1515", "db_id": "insurance_and_eClaims", "question": "Find the total and average amount paid in claim headers.", "gold_sql": "SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers", "raw_output": "SELECT SUM(Amount_Piad), AVG(Amount_Piad) FROM Claim_Headers", "predicted_sql": "SELECT SUM(Amount_Piad), AVG(Amount_Piad) FROM Claim_Headers", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1536", "db_id": "insurance_and_eClaims", "question": "What are the names of the customers and staff members?", "gold_sql": "SELECT customer_details FROM customers UNION SELECT staff_details FROM staff", "raw_output": "SELECT T1.Customer_Details, T2.Staff_Details FROM Customers AS T1 JOIN Staff AS T2 ON 1", "predicted_sql": "SELECT T1.Customer_Details, T2.Staff_Details FROM Customers AS T1 JOIN Staff AS T2 ON 1", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1535", "db_id": "insurance_and_eClaims", "question": "Find the names of all the customers and staff members.", "gold_sql": "SELECT customer_details FROM customers UNION SELECT staff_details FROM staff", "raw_output": "SELECT T1.Customer_Details, T2.Staff_Details FROM Customers AS T1, Staff AS T2", "predicted_sql": "SELECT T1.Customer_Details, T2.Staff_Details FROM Customers AS T1, Staff AS T2", "generation_status": "ok", "prompt_tokens": 643, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1517", "db_id": "insurance_and_eClaims", "question": "Find the total amount claimed in the most recently created document.", "gold_sql": "SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)", "raw_output": "SELECT MAX(T1.Amount_Claimed) FROM Claim_Headers AS T1 INNER JOIN Claims_Documents AS T2 ON T1.Claim_Header_ID = T2.Claim_ID WHERE T2.Created_Date = (SELECT MAX(Created_Date) FROM Claims_Documents);", "predicted_sql": "SELECT MAX(T1.Amount_Claimed) FROM Claim_Headers AS T1 INNER JOIN Claims_Documents AS T2 ON T1.Claim_Header_ID = T2.Claim_ID WHERE T2.Created_Date = (SELECT MAX(Created_Date) FROM Claims_Documents);", "generation_status": "ok", "prompt_tokens": 644, "generated_tokens": 64, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1531", "db_id": "insurance_and_eClaims", "question": "Find the names of the customers who have an deputy policy.", "gold_sql": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\"", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'deputy'", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'deputy'", "generation_status": "ok", "prompt_tokens": 644, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1540", "db_id": "insurance_and_eClaims", "question": "Which customer have the most policies? Give me the customer details.", "gold_sql": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 645, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1524", "db_id": "insurance_and_eClaims", "question": "What are the names of customers who do not have any policies?", "gold_sql": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 LEFT JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_ID IS NULL", "generation_status": "ok", "prompt_tokens": 645, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1516", "db_id": "insurance_and_eClaims", "question": "What are the total amount and average amount paid in claim headers?", "gold_sql": "SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers", "raw_output": "SELECT SUM(Amount_Claimed), AVG(Amount_Piad) FROM Claim_Headers", "predicted_sql": "SELECT SUM(Amount_Claimed), AVG(Amount_Piad) FROM Claim_Headers", "generation_status": "ok", "prompt_tokens": 645, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1537", "db_id": "insurance_and_eClaims", "question": "Find the number of records of each policy type and its type code.", "gold_sql": "SELECT policy_type_code , count(*) FROM policies GROUP BY policy_type_code", "raw_output": "SELECT Policy_Type_Code, count(*) FROM Policies GROUP BY Policy_Type_Code", "predicted_sql": "SELECT Policy_Type_Code, count(*) FROM Policies GROUP BY Policy_Type_Code", "generation_status": "ok", "prompt_tokens": 646, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1518", "db_id": "insurance_and_eClaims", "question": "How much amount in total were claimed in the most recently created document?", "gold_sql": "SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)", "raw_output": "SELECT SUM(T1.Amount_Claimed) FROM Claim_Headers AS T1 INNER JOIN Claims_Documents AS T2 ON T1.Claim_Header_ID = T2.Claim_ID ORDER BY T2.Created_Date DESC LIMIT 1", "predicted_sql": "SELECT SUM(T1.Amount_Claimed) FROM Claim_Headers AS T1 INNER JOIN Claims_Documents AS T2 ON T1.Claim_Header_ID = T2.Claim_ID ORDER BY T2.Created_Date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 646, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1539", "db_id": "insurance_and_eClaims", "question": "Find the name of the customer that has been involved in the most policies.", "gold_sql": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID GROUP BY T1.Customer_ID ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 647, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1533", "db_id": "insurance_and_eClaims", "question": "Find the names of customers who either have an deputy policy or uniformed policy.", "gold_sql": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\" OR t1.policy_type_code = \"Uniform\"", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'deputy' OR T2.Policy_Type_Code = 'uniformed'", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'deputy' OR T2.Policy_Type_Code = 'uniformed'", "generation_status": "ok", "prompt_tokens": 647, "generated_tokens": 61, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1513", "db_id": "insurance_and_eClaims", "question": "Find all the policy types that are used by more than 2 customers.", "gold_sql": "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2", "raw_output": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code HAVING count(*) > 2", "predicted_sql": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code HAVING count(*) > 2", "generation_status": "ok", "prompt_tokens": 647, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1528", "db_id": "insurance_and_eClaims", "question": "Which claim processing stage has the most claims? Show the claim status name.", "gold_sql": "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T2.Claim_Status_Name FROM Claims_Processing AS T1 INNER JOIN Claims_Processing_Stages AS T2 ON T1.Claim_Stage_ID = T2.Claim_Stage_ID GROUP BY T2.Claim_Status_Name ORDER BY COUNT(T1.Claim_ID) DESC LIMIT 1", "predicted_sql": "SELECT T2.Claim_Status_Name FROM Claims_Processing AS T1 INNER JOIN Claims_Processing_Stages AS T2 ON T1.Claim_Stage_ID = T2.Claim_Stage_ID GROUP BY T2.Claim_Status_Name ORDER BY COUNT(T1.Claim_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 647, "generated_tokens": 70, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1538", "db_id": "insurance_and_eClaims", "question": "For each policy type, return its type code and its count in the record.", "gold_sql": "SELECT policy_type_code , count(*) FROM policies GROUP BY policy_type_code", "raw_output": "SELECT Policy_Type_Code, count(*) FROM Policies GROUP BY Policy_Type_Code", "predicted_sql": "SELECT Policy_Type_Code, count(*) FROM Policies GROUP BY Policy_Type_Code", "generation_status": "ok", "prompt_tokens": 648, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1509", "db_id": "insurance_and_eClaims", "question": "Find all the policy type codes associated with the customer \"Dayana Robel\"", "gold_sql": "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = \"Dayana Robel\"", "raw_output": "SELECT T1.Policy_Type_Code FROM Policies AS T1 INNER JOIN Customers AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Customer_Details = 'Dayana Robel'", "predicted_sql": "SELECT T1.Policy_Type_Code FROM Policies AS T1 INNER JOIN Customers AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Customer_Details = 'Dayana Robel'", "generation_status": "ok", "prompt_tokens": 648, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1511", "db_id": "insurance_and_eClaims", "question": "Which type of policy is most frequently used? Give me the policy type code.", "gold_sql": "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 648, "generated_tokens": 24, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1530", "db_id": "insurance_and_eClaims", "question": "Which customers have the substring \"Diana\" in their names? Return the customer details.", "gold_sql": "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\"", "raw_output": "SELECT Customer_Details FROM Customers WHERE Customer_Details LIKE '%Diana%';", "predicted_sql": "SELECT Customer_Details FROM Customers WHERE Customer_Details LIKE '%Diana%';", "generation_status": "ok", "prompt_tokens": 649, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1527", "db_id": "insurance_and_eClaims", "question": "What is the name of the claim processing stage that most of the claims are on?", "gold_sql": "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T2.Claim_Status_Name FROM Claims_Processing AS T1 JOIN Claims_Processing_Stages AS T2 ON T1.Claim_Stage_ID = T2.Claim_Stage_ID GROUP BY T2.Claim_Status_Name ORDER BY COUNT(T1.Claim_ID) DESC LIMIT 1", "predicted_sql": "SELECT T2.Claim_Status_Name FROM Claims_Processing AS T1 JOIN Claims_Processing_Stages AS T2 ON T1.Claim_Stage_ID = T2.Claim_Stage_ID GROUP BY T2.Claim_Status_Name ORDER BY COUNT(T1.Claim_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 649, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1522", "db_id": "insurance_and_eClaims", "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "gold_sql": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers)", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID INNER JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID ORDER BY T3.Amount_Claimed LIMIT 1", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID INNER JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID ORDER BY T3.Amount_Claimed LIMIT 1", "generation_status": "ok", "prompt_tokens": 649, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1520", "db_id": "insurance_and_eClaims", "question": "Which customer made the largest amount of claim in a single claim? Return the customer details.", "gold_sql": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID INNER JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID ORDER BY T3.Amount_Claimed DESC LIMIT 1", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID INNER JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID ORDER BY T3.Amount_Claimed DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 650, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1510", "db_id": "insurance_and_eClaims", "question": "What are the type codes of the policies used by the customer \"Dayana Robel\"?", "gold_sql": "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = \"Dayana Robel\"", "raw_output": "SELECT T1.Policy_Type_Code FROM Policies AS T1 INNER JOIN Customers AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Customer_Details = 'Dayana Robel'", "predicted_sql": "SELECT T1.Policy_Type_Code FROM Policies AS T1 INNER JOIN Customers AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Customer_Details = 'Dayana Robel'", "generation_status": "ok", "prompt_tokens": 650, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1532", "db_id": "insurance_and_eClaims", "question": "Which customers have an insurance policy with the type code \"Deputy\"? Give me the customer details.", "gold_sql": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\"", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'Deputy'", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'Deputy'", "generation_status": "ok", "prompt_tokens": 651, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1521", "db_id": "insurance_and_eClaims", "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "gold_sql": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers)", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T3.Amount_Piad = (SELECT MIN(Amount_Piad) FROM Claim_Headers)", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T3.Amount_Piad = (SELECT MIN(Amount_Piad) FROM Claim_Headers)", "generation_status": "ok", "prompt_tokens": 651, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1519", "db_id": "insurance_and_eClaims", "question": "What is the name of the customer who has made the largest amount of claim in a single claim?", "gold_sql": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID INNER JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID ORDER BY T3.Amount_Claimed DESC LIMIT 1", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID INNER JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID ORDER BY T3.Amount_Claimed DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 652, "generated_tokens": 68, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1514", "db_id": "insurance_and_eClaims", "question": "Which types of policy are chosen by more than 2 customers? Give me the policy type codes.", "gold_sql": "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2", "raw_output": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code HAVING count(*) > 2", "predicted_sql": "SELECT Policy_Type_Code FROM Policies GROUP BY Policy_Type_Code HAVING count(*) > 2", "generation_status": "ok", "prompt_tokens": 652, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1534", "db_id": "insurance_and_eClaims", "question": "Which customers have an insurance policy with the type code \"Deputy\" or \"Uniform\"? Return the customer details.", "gold_sql": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\" OR t1.policy_type_code = \"Uniform\"", "raw_output": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'Deputy' OR T2.Policy_Type_Code = 'Uniform'", "predicted_sql": "SELECT T1.Customer_Details FROM Customers AS T1 INNER JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID WHERE T2.Policy_Type_Code = 'Deputy' OR T2.Policy_Type_Code = 'Uniform'", "generation_status": "ok", "prompt_tokens": 654, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:69", "db_id": "student_assessment", "question": "How many students attend course English?", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"", "raw_output": "SELECT count(T1.student_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name = 'English'", "predicted_sql": "SELECT count(T1.student_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name = 'English'", "generation_status": "ok", "prompt_tokens": 761, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:93", "db_id": "student_assessment", "question": "Find distinct cities of address of students?", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id", "raw_output": "SELECT DISTINCT T1.city FROM Addresses AS T1 JOIN People AS T2 ON T1.address_id = T2.person_address_id JOIN People_Addresses AS T3 ON T2.person_id = T3.person_id JOIN Students AS T4 ON T2.person_id = T4.student_id", "predicted_sql": "SELECT DISTINCT T1.city FROM Addresses AS T1 JOIN People AS T2 ON T1.address_id = T2.person_address_id JOIN People_Addresses AS T3 ON T2.person_id = T3.person_id JOIN Students AS T4 ON T2.person_id = T4.student_id", "generation_status": "ok", "prompt_tokens": 762, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.person_address_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:91", "db_id": "student_assessment", "question": "Find distinct cities of addresses of people?", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id", "raw_output": "SELECT DISTINCT T1.city FROM Addresses AS T1 JOIN People_Addresses AS T2 ON T1.address_id = T2.address_id", "predicted_sql": "SELECT DISTINCT T1.city FROM Addresses AS T1 JOIN People_Addresses AS T2 ON T1.address_id = T2.address_id", "generation_status": "ok", "prompt_tokens": 762, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:70", "db_id": "student_assessment", "question": "How many students are attending English courses?", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"", "raw_output": "SELECT count(DISTINCT T1.student_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name = 'English'", "predicted_sql": "SELECT count(DISTINCT T1.student_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name = 'English'", "generation_status": "ok", "prompt_tokens": 762, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:94", "db_id": "student_assessment", "question": "What are the different cities where students live?", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id", "raw_output": "SELECT DISTINCT T1.city FROM Addresses AS T1 INNER JOIN People AS T2 ON T1.address_id = T2.person_address_id JOIN People_Addresses AS T3 ON T2.person_id = T3.person_id WHERE T3.person_id IN (SELECT student_id FROM Students)", "predicted_sql": "SELECT DISTINCT T1.city FROM Addresses AS T1 INNER JOIN People AS T2 ON T1.address_id = T2.person_address_id JOIN People_Addresses AS T3 ON T2.person_id = T3.person_id WHERE T3.person_id IN (SELECT student_id FROM Students)", "generation_status": "ok", "prompt_tokens": 763, "generated_tokens": 71, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.person_address_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:56", "db_id": "student_assessment", "question": "which course has most number of registered students?", "gold_sql": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T2.course_name FROM Student_Course_Registrations AS T1 JOIN Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_name ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T2.course_name FROM Student_Course_Registrations AS T1 JOIN Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_name ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 763, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:92", "db_id": "student_assessment", "question": "What are the different cities where people live?", "gold_sql": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id", "raw_output": "SELECT DISTINCT T1.city FROM Addresses AS T1", "predicted_sql": "SELECT DISTINCT T1.city FROM Addresses AS T1", "generation_status": "ok", "prompt_tokens": 763, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:95", "db_id": "student_assessment", "question": "List the names of courses in alphabetical order?", "gold_sql": "SELECT course_name FROM courses ORDER BY course_name", "raw_output": "SELECT course_name FROM Courses ORDER BY course_name;", "predicted_sql": "SELECT course_name FROM Courses ORDER BY course_name;", "generation_status": "ok", "prompt_tokens": 763, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:97", "db_id": "student_assessment", "question": "List the first names of people in alphabetical order?", "gold_sql": "SELECT first_name FROM people ORDER BY first_name", "raw_output": "SELECT first_name FROM People ORDER BY first_name;", "predicted_sql": "SELECT first_name FROM People ORDER BY first_name;", "generation_status": "ok", "prompt_tokens": 764, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:64", "db_id": "student_assessment", "question": "List the id of students who attended some courses?", "gold_sql": "SELECT student_id FROM student_course_attendance", "raw_output": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id", "generation_status": "ok", "prompt_tokens": 764, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:62", "db_id": "student_assessment", "question": "List the id of students who never attends courses?", "gold_sql": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "raw_output": "SELECT T1.student_id FROM Students AS T1 LEFT JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id IS NULL", "predicted_sql": "SELECT T1.student_id FROM Students AS T1 LEFT JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id IS NULL", "generation_status": "ok", "prompt_tokens": 764, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:83", "db_id": "student_assessment", "question": "Find id of candidates whose assessment code is \"Pass\"?", "gold_sql": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"", "raw_output": "SELECT T1.candidate_id FROM Candidate_Assessments AS T1 WHERE T1.asessment_outcome_code = 'Pass'", "predicted_sql": "SELECT T1.candidate_id FROM Candidate_Assessments AS T1 WHERE T1.asessment_outcome_code = 'Pass'", "generation_status": "ok", "prompt_tokens": 765, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:96", "db_id": "student_assessment", "question": "What are the names of the courses in alphabetical order?", "gold_sql": "SELECT course_name FROM courses ORDER BY course_name", "raw_output": "SELECT course_name FROM Courses ORDER BY course_name;", "predicted_sql": "SELECT course_name FROM Courses ORDER BY course_name;", "generation_status": "ok", "prompt_tokens": 765, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:67", "db_id": "student_assessment", "question": "What is detail of the student who most recently registered course?", "gold_sql": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1", "raw_output": "SELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id ORDER BY T2.registration_date DESC LIMIT 1", "predicted_sql": "SELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id ORDER BY T2.registration_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 766, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:60", "db_id": "student_assessment", "question": "what are the first name and last name of all candidates?", "gold_sql": "SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id", "raw_output": "SELECT T1.first_name, T1.last_name FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id", "generation_status": "ok", "prompt_tokens": 766, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:75", "db_id": "student_assessment", "question": "Find id of the candidate who most recently accessed the course?", "gold_sql": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1", "raw_output": "SELECT T1.candidate_id FROM Candidates AS T1 INNER JOIN People_Addresses AS T2 ON T1.candidate_id = T2.person_id INNER JOIN People AS T3 ON T2.person_id = T3.person_id INNER JOIN Student_Course_Registrations AS T4 ON T3.person_id = T4.student_id INNER JOIN Student_Course_Attendance AS T5 ON T4.student_id = T5.student_id WHERE T5.date_of_attendance = (SELECT MAX(date_of_attendance) FROM Student_Course_Attendance)", "predicted_sql": "SELECT T1.candidate_id FROM Candidates AS T1 INNER JOIN People_Addresses AS T2 ON T1.candidate_id = T2.person_id INNER JOIN People AS T3 ON T2.person_id = T3.person_id INNER JOIN Student_Course_Registrations AS T4 ON T3.person_id = T4.student_id INNER JOIN Student_Course_Attendance AS T5 ON T4.student_id = T5.student_id WHERE T5.date_of_attendance = (SELECT MAX(date_of_attendance) FROM Student_Course_Attendance)", "generation_status": "ok", "prompt_tokens": 766, "generated_tokens": 131, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:61", "db_id": "student_assessment", "question": "What are the first and last names of all the candidates?", "gold_sql": "SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id", "raw_output": "SELECT T1.first_name, T1.last_name FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id", "generation_status": "ok", "prompt_tokens": 766, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:98", "db_id": "student_assessment", "question": "What are the first names of the people in alphabetical order?", "gold_sql": "SELECT first_name FROM people ORDER BY first_name", "raw_output": "SELECT first_name FROM People ORDER BY first_name;", "predicted_sql": "SELECT first_name FROM People ORDER BY first_name;", "generation_status": "ok", "prompt_tokens": 766, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:99", "db_id": "student_assessment", "question": "What are the id of students who registered courses or attended courses?", "gold_sql": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance", "raw_output": "SELECT T1.student_id FROM Student_Course_Registrations AS T1\nUNION\nSELECT T2.student_id FROM Student_Course_Attendance AS T2", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Registrations AS T1\nUNION\nSELECT T2.student_id FROM Student_Course_Attendance AS T2", "generation_status": "ok", "prompt_tokens": 767, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:57", "db_id": "student_assessment", "question": "What is the name of the course with the most registered students?", "gold_sql": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 767, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:77", "db_id": "student_assessment", "question": "What is detail of the student who registered the most number of courses?", "gold_sql": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.student_details FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.student_details FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 768, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:87", "db_id": "student_assessment", "question": "What are the id of students who registered course 301?", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301", "raw_output": " نحوه_الاستعلام_للحصول_من_المستخدمين_الذين_سجلوا_في_الدورة_301", "predicted_sql": "نحوه_الاستعلام_للحصول_من_المستخدمين_الذين_سجلوا_في_الدورة_301", "generation_status": "ok", "prompt_tokens": 768, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:76", "db_id": "student_assessment", "question": "What is the id of the candidate who most recently accessed the course?", "gold_sql": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1", "raw_output": " نحوه_تحديد_المستخدم_الأكثر_حداثة_للوصول_على_الدورة_يتطلب_الوصول_إلى_جدول_Student_Course_Attendance_والبحث_عن_أحدث_تاريخ_في_عمود_date_of_attendance_ثم_ربط_النتيجة_بجدول_Candidates_للحصول_على_candidate_id", "predicted_sql": "نحوه_تحديد_المستخدم_الأكثر_حداثة_للوصول_على_الدورة_يتطلب_الوصول_إلى_جدول_Student_Course_Attendance_والبحث_عن_أحدث_تاريخ_في_عمود_date_of_attendance_ثم_ربط_النتيجة_بجدول_Candidates_للحصول_على_candidate_id", "generation_status": "ok", "prompt_tokens": 768, "generated_tokens": 92, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:103", "db_id": "student_assessment", "question": "What are all info of students who registered courses but not attended courses?", "gold_sql": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "raw_output": " نحوه_الاستعلام_للحصول_على_معلومات_الطلاب_الذين_سجلوا_في_دورات_ولم_يحضروا_دورات:\nSELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id LEFT JOIN Student_Course_Attendance AS T3 ON T2.student_id = T3.student_id WHERE T3.student_id IS NULL", "predicted_sql": "نحوه_الاستعلام_للحصول_على_معلومات_الطلاب_الذين_سجلوا_في_دورات_ولم_يحضروا_دورات:\nSELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id LEFT JOIN Student_Course_Attendance AS T3 ON T2.student_id = T3.student_id WHERE T3.student_id IS NULL", "generation_status": "ok", "prompt_tokens": 768, "generated_tokens": 114, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:68", "db_id": "student_assessment", "question": "What details do we have on the students who registered for courses most recently?", "gold_sql": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1", "raw_output": "2SELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id ORDER BY T2.registration_date DESC LIMIT 1", "predicted_sql": "2SELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id ORDER BY T2.registration_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:72", "db_id": "student_assessment", "question": "How many courses does the student with id 171 actually attend?", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171", "raw_output": "2\nSELECT count(T1.course_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id = 171", "predicted_sql": "2\nSELECT count(T1.course_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id = 171", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "near \"2\": syntax error", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:63", "db_id": "student_assessment", "question": "What are the ids of every student who has never attended a course?", "gold_sql": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "raw_output": "2SELECT T1.student_id FROM Students AS T1 LEFT JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id IS NULL", "predicted_sql": "2SELECT T1.student_id FROM Students AS T1 LEFT JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id IS NULL", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:100", "db_id": "student_assessment", "question": "What are the ids of the students who either registered or attended a course?", "gold_sql": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance", "raw_output": "2SELECT T1.student_id FROM Student_Course_Registrations AS T1 UNION SELECT T1.student_id FROM Student_Course_Attendance AS T1", "predicted_sql": "2SELECT T1.student_id FROM Student_Course_Registrations AS T1 UNION SELECT T1.student_id FROM Student_Course_Attendance AS T1", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 36, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:85", "db_id": "student_assessment", "question": "Find the cell mobile number of the candidates whose assessment code is \"Fail\"?", "gold_sql": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"", "raw_output": "SELECT T1.cell_mobile_number FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id INNER JOIN Candidate_Assessments AS T3 ON T2.candidate_id = T3.candidate_id WHERE T3.asessment_outcome_code = 'Fail'", "predicted_sql": "SELECT T1.cell_mobile_number FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id INNER JOIN Candidate_Assessments AS T3 ON T2.candidate_id = T3.candidate_id WHERE T3.asessment_outcome_code = 'Fail'", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:84", "db_id": "student_assessment", "question": "What are the ids of the candidates that have an outcome code of Pass?", "gold_sql": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"", "raw_output": "SELECT T1.candidate_id FROM Candidate_Assessments AS T1 WHERE T1.asessment_outcome_code = 'Pass'", "predicted_sql": "SELECT T1.candidate_id FROM Candidate_Assessments AS T1 WHERE T1.asessment_outcome_code = 'Pass'", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 30, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:65", "db_id": "student_assessment", "question": "What are the ids of all students who have attended at least one course?", "gold_sql": "SELECT student_id FROM student_course_attendance", "raw_output": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:71", "db_id": "student_assessment", "question": "How many courses do the student whose id is 171 attend?", "gold_sql": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171", "raw_output": "SELECT count(T1.course_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id = 171", "predicted_sql": "SELECT count(T1.course_id) FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id WHERE T2.student_id = 171", "generation_status": "ok", "prompt_tokens": 769, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:88", "db_id": "student_assessment", "question": "What are the ids of the students who registered for course 301?", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301", "raw_output": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 INNER JOIN Courses AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = '301'", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 INNER JOIN Courses AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = '301'", "generation_status": "ok", "prompt_tokens": 770, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:105", "db_id": "student_assessment", "question": "List the id of students who registered course statistics in the order of registration date.", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date", "raw_output": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 ORDER BY T1.date_of_attendance", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 ORDER BY T1.date_of_attendance", "generation_status": "ok", "prompt_tokens": 770, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:104", "db_id": "student_assessment", "question": "What are all details of the students who registered but did not attend any course?", "gold_sql": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "raw_output": "SELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id LEFT JOIN Student_Course_Attendance AS T3 ON T2.student_id = T3.student_id WHERE T3.course_id IS NULL", "predicted_sql": "SELECT T1.student_details FROM Students AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id LEFT JOIN Student_Course_Attendance AS T3 ON T2.student_id = T3.student_id WHERE T3.course_id IS NULL", "generation_status": "ok", "prompt_tokens": 770, "generated_tokens": 71, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:78", "db_id": "student_assessment", "question": "What are the details of the student who registered for the most number of courses?", "gold_sql": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.student_details FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1", "predicted_sql": "SELECT T1.student_details FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(T2.course_id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 770, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:106", "db_id": "student_assessment", "question": "What are the ids of the students who registered course statistics by order of registration date?", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date", "raw_output": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 ORDER BY T1.date_of_attendance", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 ORDER BY T1.date_of_attendance", "generation_status": "ok", "prompt_tokens": 771, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:89", "db_id": "student_assessment", "question": "What is the id of the student who most recently registered course 301?", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1", "raw_output": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 INNER JOIN Courses AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = '301' ORDER BY T1.registration_date DESC LIMIT 1", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 INNER JOIN Courses AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = '301' ORDER BY T1.registration_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 771, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:82", "db_id": "student_assessment", "question": "For each course id, how many students are registered and what are the course names?", "gold_sql": "SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id", "raw_output": "SELECT T1.course_id, COUNT(T2.student_id) AS number_of_students, T3.course_name FROM Courses AS T1 JOIN Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id JOIN Courses AS T3 ON T1.course_id = T3.course_id GROUP BY T1.course_id", "predicted_sql": "SELECT T1.course_id, COUNT(T2.student_id) AS number_of_students, T3.course_name FROM Courses AS T1 JOIN Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id JOIN Courses AS T3 ON T1.course_id = T3.course_id GROUP BY T1.course_id", "generation_status": "ok", "prompt_tokens": 771, "generated_tokens": 87, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:79", "db_id": "student_assessment", "question": "List the id of students who registered some courses and the number of their registered courses?", "gold_sql": "SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "raw_output": "SELECT T1.student_id, count(T2.course_id)\nFROM Student_Course_Registrations AS T1\nJOIN Student_Course_Attendance AS T3 ON T1.student_id = T3.student_id\nJOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id\nGROUP BY T1.student_id", "predicted_sql": "SELECT T1.student_id, count(T2.course_id)\nFROM Student_Course_Registrations AS T1\nJOIN Student_Course_Attendance AS T3 ON T1.student_id = T3.student_id\nJOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id\nGROUP BY T1.student_id", "generation_status": "ok", "prompt_tokens": 771, "generated_tokens": 87, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:107", "db_id": "student_assessment", "question": "List the id of students who attended statistics courses in the order of attendance date.", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance", "raw_output": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name = 'statistics' ORDER BY T1.date_of_attendance", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name = 'statistics' ORDER BY T1.date_of_attendance", "generation_status": "ok", "prompt_tokens": 771, "generated_tokens": 83, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:73", "db_id": "student_assessment", "question": "Find id of the candidate whose email is stanley.monahan@example.org?", "gold_sql": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"", "raw_output": "SELECT T1.candidate_id FROM People AS T1 WHERE T1.email_address = 'stanley.monahan@example.org'", "predicted_sql": "SELECT T1.candidate_id FROM People AS T1 WHERE T1.email_address = 'stanley.monahan@example.org'", "generation_status": "ok", "prompt_tokens": 772, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.candidate_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:90", "db_id": "student_assessment", "question": "What are the ids of the students who registered for course 301 most recently?", "gold_sql": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1", "raw_output": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 INNER JOIN Courses AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = '301' ORDER BY T1.registration_date DESC LIMIT 1", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 INNER JOIN Courses AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = '301' ORDER BY T1.registration_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 772, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:66", "db_id": "student_assessment", "question": "What are the ids of all students for courses and what are the names of those courses?", "gold_sql": "SELECT T1.student_id , T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id", "raw_output": "SELECT T1.student_id, T2.course_name FROM Student_Course_Registrations AS T1 JOIN Courses AS T2 ON T1.course_id = T2.course_id", "predicted_sql": "SELECT T1.student_id, T2.course_name FROM Student_Course_Registrations AS T1 JOIN Courses AS T2 ON T1.course_id = T2.course_id", "generation_status": "ok", "prompt_tokens": 772, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:86", "db_id": "student_assessment", "question": "What are the cell phone numbers of the candidates that received an assessment code of \"Fail\"?", "gold_sql": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"", "raw_output": "SELECT T1.cell_mobile_number FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id INNER JOIN Candidate_Assessments AS T3 ON T2.candidate_id = T3.candidate_id WHERE T3.asessment_outcome_code = 'Fail'", "predicted_sql": "SELECT T1.cell_mobile_number FROM People AS T1 INNER JOIN Candidates AS T2 ON T1.person_id = T2.candidate_id INNER JOIN Candidate_Assessments AS T3 ON T2.candidate_id = T3.candidate_id WHERE T3.asessment_outcome_code = 'Fail'", "generation_status": "ok", "prompt_tokens": 772, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:80", "db_id": "student_assessment", "question": "For every student who is registered for some course, how many courses are they registered for?", "gold_sql": "SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "raw_output": "SELECT T1.student_id, count(T2.course_id) FROM Student_Course_Registrations AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "predicted_sql": "SELECT T1.student_id, count(T2.course_id) FROM Student_Course_Registrations AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "generation_status": "ok", "prompt_tokens": 772, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:58", "db_id": "student_assessment", "question": "what is id of students who registered some courses but the least number of courses in these students?", "gold_sql": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1", "raw_output": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = (SELECT COUNT(*) FROM Student_Course_Registrations GROUP BY student_id ORDER BY COUNT(*) DESC LIMIT 1);", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = (SELECT COUNT(*) FROM Student_Course_Registrations GROUP BY student_id ORDER BY COUNT(*) DESC LIMIT 1);", "generation_status": "ok", "prompt_tokens": 773, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:74", "db_id": "student_assessment", "question": "What is the id of the candidate whose email is stanley.monahan@example.org?", "gold_sql": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"", "raw_output": "SELECT T1.candidate_id FROM People AS T1 WHERE T1.email_address = 'stanley.monahan@example.org'", "predicted_sql": "SELECT T1.candidate_id FROM People AS T1 WHERE T1.email_address = 'stanley.monahan@example.org'", "generation_status": "ok", "prompt_tokens": 774, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.candidate_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:101", "db_id": "student_assessment", "question": "Find the id of courses which are registered or attended by student whose id is 121?", "gold_sql": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121", "raw_output": "SELECT T1.course_id FROM Student_Course_Registrations AS T1 INNER JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T1.student_id = 121", "predicted_sql": "SELECT T1.course_id FROM Student_Course_Registrations AS T1 INNER JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T1.student_id = 121", "generation_status": "ok", "prompt_tokens": 774, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:108", "db_id": "student_assessment", "question": "What are the ids of the students who attended courses in the statistics department in order of attendance date.", "gold_sql": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance", "raw_output": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name LIKE '%statistics%' ORDER BY T1.date_of_attendance", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Attendance AS T1 INNER JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id INNER JOIN Courses AS T3 ON T2.course_id = T3.course_id WHERE T3.course_name LIKE '%statistics%' ORDER BY T1.date_of_attendance", "generation_status": "ok", "prompt_tokens": 774, "generated_tokens": 83, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:81", "db_id": "student_assessment", "question": "How many registed students do each course have? List course name and the number of their registered students?", "gold_sql": "SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id", "raw_output": "SELECT T1.course_name, count(T2.student_id)\nFROM Courses AS T1\nJOIN Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id\nGROUP BY T1.course_name", "predicted_sql": "SELECT T1.course_name, count(T2.student_id)\nFROM Courses AS T1\nJOIN Student_Course_Registrations AS T2 ON T1.course_id = T2.course_id\nGROUP BY T1.course_name", "generation_status": "ok", "prompt_tokens": 775, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:102", "db_id": "student_assessment", "question": "What are the ids of the courses that are registered or attended by the student whose id is 121?", "gold_sql": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121", "raw_output": "SELECT T1.course_id FROM Student_Course_Registrations AS T1 INNER JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T1.student_id = 121", "predicted_sql": "SELECT T1.course_id FROM Student_Course_Registrations AS T1 INNER JOIN Student_Course_Attendance AS T2 ON T1.student_id = T2.student_id WHERE T1.student_id = 121", "generation_status": "ok", "prompt_tokens": 777, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:59", "db_id": "student_assessment", "question": "What are the ids of the students who registered for some courses but had the least number of courses for all students?", "gold_sql": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1", "raw_output": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(T1.course_id) ASC LIMIT 1", "predicted_sql": "SELECT T1.student_id FROM Student_Course_Registrations AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(T1.course_id) ASC LIMIT 1", "generation_status": "ok", "prompt_tokens": 777, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:611", "db_id": "store_1", "question": "List all media types.", "gold_sql": "SELECT name FROM media_types;", "raw_output": "SELECT name FROM media_types", "predicted_sql": "SELECT name FROM media_types", "generation_status": "ok", "prompt_tokens": 978, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:613", "db_id": "store_1", "question": "List all different genre types.", "gold_sql": "SELECT DISTINCT name FROM genres;", "raw_output": "SELECT name FROM genres", "predicted_sql": "SELECT name FROM genres", "generation_status": "ok", "prompt_tokens": 979, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:569", "db_id": "store_1", "question": "List Aerosmith's albums.", "gold_sql": "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Aerosmith'", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Aerosmith'", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:596", "db_id": "store_1", "question": "How many employees live in Canada?", "gold_sql": "SELECT count(*) FROM employees WHERE country = \"Canada\";", "raw_output": "SELECT count(*) FROM employees WHERE country = 'Canada'", "predicted_sql": "SELECT count(*) FROM employees WHERE country = 'Canada'", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:580", "db_id": "store_1", "question": "How many customers are from California?", "gold_sql": "SELECT count(*) FROM customers WHERE state = \"CA\";", "raw_output": "SELECT count(*) FROM customers WHERE state = 'California'", "predicted_sql": "SELECT count(*) FROM customers WHERE state = 'California'", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:582", "db_id": "store_1", "question": "In which country does Roberto Almeida?", "gold_sql": "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";", "raw_output": "SELECT T1.country FROM employees AS T1 WHERE T1.first_name = 'Roberto' AND T1.last_name = 'Almeida'", "predicted_sql": "SELECT T1.country FROM employees AS T1 WHERE T1.first_name = 'Roberto' AND T1.last_name = 'Almeida'", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:581", "db_id": "store_1", "question": "What country does Roberto Almeida live?", "gold_sql": "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";", "raw_output": "SELECT T1.country FROM employees AS T1 WHERE T1.first_name = 'Roberto' AND T1.last_name = 'Almeida'", "predicted_sql": "SELECT T1.country FROM employees AS T1 WHERE T1.first_name = 'Roberto' AND T1.last_name = 'Almeida'", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:551", "db_id": "store_1", "question": "List every album's title.", "gold_sql": "SELECT title FROM albums;", "raw_output": "SELECT title FROM albums", "predicted_sql": "SELECT title FROM albums", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:615", "db_id": "store_1", "question": "List the name of all playlist.", "gold_sql": "SELECT name FROM playlists;", "raw_output": "SELECT name FROM playlists", "predicted_sql": "SELECT name FROM playlists", "generation_status": "ok", "prompt_tokens": 980, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:610", "db_id": "store_1", "question": "How much money did Lucas Mancini spend?", "gold_sql": "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "raw_output": "SELECT SUM(T1.quantity * T1.unit_price) FROM invoice_lines AS T1 INNER JOIN invoices AS T2 ON T1.invoice_id = T2.id INNER JOIN customers AS T3 ON T2.customer_id = T3 WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Mancini'", "predicted_sql": "SELECT SUM(T1.quantity * T1.unit_price) FROM invoice_lines AS T1 INNER JOIN invoices AS T2 ON T1.invoice_id = T2.id INNER JOIN customers AS T3 ON T2.customer_id = T3 WHERE T3.first_name = 'Lucas' AND T3.last_name = 'Mancini'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:585", "db_id": "store_1", "question": "How many customers does Steve Johnson support?", "gold_sql": "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";", "raw_output": "SELECT count(T1.id) FROM customers AS T1 INNER JOIN employees AS T2 ON T1.support_rep_id = T2.id WHERE T2.first_name = 'Steve' AND T2.last_name = 'Johnson'", "predicted_sql": "SELECT count(T1.id) FROM customers AS T1 INNER JOIN employees AS T2 ON T1.support_rep_id = T2.id WHERE T2.first_name = 'Steve' AND T2.last_name = 'Johnson'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:607", "db_id": "store_1", "question": "How many orders does Lucas Mancini has?", "gold_sql": "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "raw_output": "SELECT count(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.first_name = 'Lucas' AND T2.last_name = 'Mancini'", "predicted_sql": "SELECT count(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.first_name = 'Lucas' AND T2.last_name = 'Mancini'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:579", "db_id": "store_1", "question": "How many customers in state of CA?", "gold_sql": "SELECT count(*) FROM customers WHERE state = \"CA\";", "raw_output": "SELECT count(*) FROM customers WHERE state = 'CA'", "predicted_sql": "SELECT count(*) FROM customers WHERE state = 'CA'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:647", "db_id": "store_1", "question": "Find number of tracks in each genre?", "gold_sql": "SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;", "raw_output": "SELECT T2.name, count(T1.id) FROM tracks AS T1 JOIN genres AS T2 ON T1.genre_id = T2.id GROUP BY T2.name", "predicted_sql": "SELECT T2.name, count(T1.id) FROM tracks AS T1 JOIN genres AS T2 ON T1.genre_id = T2.id GROUP BY T2.name", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:595", "db_id": "store_1", "question": "How many employees are living in Canada?", "gold_sql": "SELECT count(*) FROM employees WHERE country = \"Canada\";", "raw_output": "SELECT count(*) FROM employees WHERE country = 'Canada'", "predicted_sql": "SELECT count(*) FROM employees WHERE country = 'Canada'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:577", "db_id": "store_1", "question": "How many customers live in Prague city?", "gold_sql": "SELECT count(*) FROM customers WHERE city = \"Prague\";", "raw_output": "SELECT count(*) FROM customers WHERE city = 'Prague'", "predicted_sql": "SELECT count(*) FROM customers WHERE city = 'Prague'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:592", "db_id": "store_1", "question": "What is Nancy Edwards's address?", "gold_sql": "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "raw_output": "SELECT T1.address FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "predicted_sql": "SELECT T1.address FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:648", "db_id": "store_1", "question": "How many tracks are in each genre?", "gold_sql": "SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;", "raw_output": "SELECT T2.name, count(T1.id) FROM tracks AS T1 JOIN genres AS T2 ON T1.genre_id = T2.id GROUP BY T2.name", "predicted_sql": "SELECT T2.name, count(T1.id) FROM tracks AS T1 JOIN genres AS T2 ON T1.genre_id = T2.id GROUP BY T2.name", "generation_status": "ok", "prompt_tokens": 981, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:564", "db_id": "store_1", "question": "How many invoices were billed from each state?", "gold_sql": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state;", "raw_output": "SELECT T2.state, COUNT(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.state", "predicted_sql": "SELECT T2.state, COUNT(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id GROUP BY T2.state", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:614", "db_id": "store_1", "question": "What are the different names of the genres?", "gold_sql": "SELECT DISTINCT name FROM genres;", "raw_output": "SELECT name FROM genres", "predicted_sql": "SELECT name FROM genres", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:572", "db_id": "store_1", "question": "How many albums has Billy Cobam released?", "gold_sql": "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";", "raw_output": "SELECT COUNT(T1.id) FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Billy Cobham'", "predicted_sql": "SELECT COUNT(T1.id) FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Billy Cobham'", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:573", "db_id": "store_1", "question": "Eduardo Martins is a customer at which company?", "gold_sql": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";", "raw_output": "SELECT T1.company FROM customers AS T1 WHERE T1.first_name = 'Eduardo' AND T1.last_name = 'Martins'", "predicted_sql": "SELECT T1.company FROM customers AS T1 WHERE T1.first_name = 'Eduardo' AND T1.last_name = 'Martins'", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:616", "db_id": "store_1", "question": "What are the names of all the playlists?", "gold_sql": "SELECT name FROM playlists;", "raw_output": "SELECT name FROM playlists", "predicted_sql": "SELECT name FROM playlists", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:566", "db_id": "store_1", "question": "What are the states with the most invoices?", "gold_sql": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;", "raw_output": "SELECT T1.state FROM invoices AS T2 INNER JOIN customers AS T1 ON T2.customer_id = T1.id GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.state FROM invoices AS T2 INNER JOIN customers AS T1 ON T2.customer_id = T1.id GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:591", "db_id": "store_1", "question": "What is the address of employee Nancy Edwards?", "gold_sql": "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "raw_output": "SELECT T1.address FROM employees AS T1 WHERE T1.first_name = 'Nancy'", "predicted_sql": "SELECT T1.address FROM employees AS T1 WHERE T1.first_name = 'Nancy'", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:552", "db_id": "store_1", "question": "What are the titles of all the albums?", "gold_sql": "SELECT title FROM albums;", "raw_output": "SELECT title FROM albums", "predicted_sql": "SELECT title FROM albums", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 5, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:571", "db_id": "store_1", "question": "How many albums does Billy Cobham has?", "gold_sql": "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";", "raw_output": "SELECT count(T1.id) FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Billy Cobham'", "predicted_sql": "SELECT count(T1.id) FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Billy Cobham'", "generation_status": "ok", "prompt_tokens": 982, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:578", "db_id": "store_1", "question": "How many customers live in the city of Prague?", "gold_sql": "SELECT count(*) FROM customers WHERE city = \"Prague\";", "raw_output": "SELECT count(*) FROM customers WHERE city = 'Prague'", "predicted_sql": "SELECT count(*) FROM customers WHERE city = 'Prague'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:561", "db_id": "store_1", "question": "List the number of invoices from Chicago, IL.", "gold_sql": "SELECT COUNT(*) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "raw_output": "SELECT count(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.city = 'Chicago' AND T2.state = 'IL'", "predicted_sql": "SELECT count(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.city = 'Chicago' AND T2.state = 'IL'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:612", "db_id": "store_1", "question": "What are the names of all the media types?", "gold_sql": "SELECT name FROM media_types;", "raw_output": "SELECT name FROM media_types", "predicted_sql": "SELECT name FROM media_types", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:597", "db_id": "store_1", "question": "What is employee Nancy Edwards's phone number?", "gold_sql": "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "raw_output": "SELECT T1.phone FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "predicted_sql": "SELECT T1.phone FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:641", "db_id": "store_1", "question": "How much is the track Fast As a Shark?", "gold_sql": "SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\";", "raw_output": "SELECT T1.unit_price FROM invoice_lines AS T1 INNER JOIN tracks AS T2 ON T1.track_id = T2.id WHERE T2.name = 'Fast As a Shark'", "predicted_sql": "SELECT T1.unit_price FROM invoice_lines AS T1 INNER JOIN tracks AS T2 ON T1.track_id = T2.id WHERE T2.name = 'Fast As a Shark'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:619", "db_id": "store_1", "question": "How long does track Fast As a Shark has?", "gold_sql": "SELECT milliseconds FROM tracks WHERE name = \"Fast As a Shark\";", "raw_output": "SELECT T1.milliseconds FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "predicted_sql": "SELECT T1.milliseconds FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:640", "db_id": "store_1", "question": "What are the tracks that Dean Peeters bought?", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN albums AS T2 ON T1.album_id = T2.id INNER JOIN artists AS T3 ON T2.artist_id = T3.id WHERE T3.name = 'Dean Peeters'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN albums AS T2 ON T1.album_id = T2.id INNER JOIN artists AS T3 ON T2.artist_id = T3.id WHERE T3.name = 'Dean Peeters'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:562", "db_id": "store_1", "question": "How many invoices were billed from Chicago, IL?", "gold_sql": "SELECT COUNT(*) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "raw_output": "SELECT count(*) FROM invoices WHERE billing_city = 'Chicago' AND billing_state = 'IL'", "predicted_sql": "SELECT count(*) FROM invoices WHERE billing_city = 'Chicago' AND billing_state = 'IL'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:598", "db_id": "store_1", "question": "What is the the phone number of Nancy Edwards?", "gold_sql": "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "raw_output": "SELECT T1.phone FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "predicted_sql": "SELECT T1.phone FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:620", "db_id": "store_1", "question": "How many milliseconds long is Fast As a Shark?", "gold_sql": "SELECT milliseconds FROM tracks WHERE name = \"Fast As a Shark\";", "raw_output": "SELECT T1.milliseconds FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "predicted_sql": "SELECT T1.milliseconds FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "generation_status": "ok", "prompt_tokens": 983, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:621", "db_id": "store_1", "question": "What is the name of tracks whose genre is Rock?", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:617", "db_id": "store_1", "question": "Who is the composer of track Fast As a Shark?", "gold_sql": "SELECT composer FROM tracks WHERE name = \"Fast As a Shark\";", "raw_output": "SELECT T1.composer FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "predicted_sql": "SELECT T1.composer FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:570", "db_id": "store_1", "question": "What are the titles of all the Aerosmith albums?", "gold_sql": "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Aerosmith'", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = 'Aerosmith'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:554", "db_id": "store_1", "question": "What are the titles of all the albums alphabetically ascending?", "gold_sql": "SELECT title FROM albums ORDER BY title;", "raw_output": "SELECT title FROM albums ORDER BY title ASC", "predicted_sql": "SELECT title FROM albums ORDER BY title ASC", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:565", "db_id": "store_1", "question": "List the state in the US with the most invoices.", "gold_sql": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;", "raw_output": "SELECT T1.state FROM invoices AS T2 INNER JOIN customers AS T1 ON T2.customer_id = T1.id GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.state FROM invoices AS T2 INNER JOIN customers AS T1 ON T2.customer_id = T1.id GROUP BY T1.state ORDER BY count(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:574", "db_id": "store_1", "question": "What is the company where Eduardo Martins is a customer?", "gold_sql": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";", "raw_output": "SELECT T1.company FROM customers AS T1 INNER JOIN employees AS T2 ON T1.support_rep_id = T2.id WHERE T2.first_name = 'Eduardo' AND T2.last_name = 'Martins'", "predicted_sql": "SELECT T1.company FROM customers AS T1 INNER JOIN employees AS T2 ON T1.support_rep_id = T2.id WHERE T2.first_name = 'Eduardo' AND T2.last_name = 'Martins'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:586", "db_id": "store_1", "question": "What is the count of customers that Steve Johnson supports?", "gold_sql": "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";", "raw_output": "SELECT count(T1.id) FROM customers AS T1 INNER JOIN employees AS T2 ON T1.support_rep_id = T2.id WHERE T2.first_name = 'Steve' AND T2.last_name = 'Johnson'", "predicted_sql": "SELECT count(T1.id) FROM customers AS T1 INNER JOIN employees AS T2 ON T1.support_rep_id = T2.id WHERE T2.first_name = 'Steve' AND T2.last_name = 'Johnson'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:639", "db_id": "store_1", "question": "List all tracks bought by customer Daan Peeters.", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN invoice_lines AS T2 ON T1.id = T2.track_id INNER JOIN invoices AS T3 ON T2.invoice_id = T3.id INNER JOIN customers AS T4 ON T3.customer_id = T4 WHERE T4.first_name = 'Daan' AND T4.last_name = 'Peeters'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN invoice_lines AS T2 ON T1.id = T2.track_id INNER JOIN invoices AS T3 ON T2.invoice_id = T3.id INNER JOIN customers AS T4 ON T3.customer_id = T4 WHERE T4.first_name = 'Daan' AND T4.last_name = 'Peeters'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 89, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T4", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:608", "db_id": "store_1", "question": "How many orders does Luca Mancini have in his invoices?", "gold_sql": "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "raw_output": "SELECT count(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.first_name = 'Luca' AND T2.last_name = 'Mancini'", "predicted_sql": "SELECT count(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.first_name = 'Luca' AND T2.last_name = 'Mancini'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:559", "db_id": "store_1", "question": "List total amount of invoice from Chicago, IL.", "gold_sql": "SELECT sum(total) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "raw_output": "SELECT SUM(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.city = 'Chicago' AND T2.state = 'IL'", "predicted_sql": "SELECT SUM(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.city = 'Chicago' AND T2.state = 'IL'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:625", "db_id": "store_1", "question": "List name of all tracks in Balls to the Wall.", "gold_sql": "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN albums AS T2 ON T1.album_id = T2.id WHERE T2.title = 'Balls to the Wall'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN albums AS T2 ON T1.album_id = T2.id WHERE T2.title = 'Balls to the Wall'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:575", "db_id": "store_1", "question": "What is Astrid Gruber's email and phone number?", "gold_sql": "SELECT email , phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";", "raw_output": "SELECT T1.email, T1.phone FROM employees AS T1 WHERE T1.first_name = 'Astrid' AND T1.last_name = 'Gruber'", "predicted_sql": "SELECT T1.email, T1.phone FROM employees AS T1 WHERE T1.first_name = 'Astrid' AND T1.last_name = 'Gruber'", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:553", "db_id": "store_1", "question": "List every album ordered by album title in ascending order.", "gold_sql": "SELECT title FROM albums ORDER BY title;", "raw_output": "SELECT title FROM albums ORDER BY title ASC", "predicted_sql": "SELECT title FROM albums ORDER BY title ASC", "generation_status": "ok", "prompt_tokens": 984, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:604", "db_id": "store_1", "question": "How many employees who are IT staff are from each city?", "gold_sql": "SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city", "raw_output": "SELECT city, count(id) FROM employees WHERE title LIKE '%IT%' GROUP BY city", "predicted_sql": "SELECT city, count(id) FROM employees WHERE title LIKE '%IT%' GROUP BY city", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:555", "db_id": "store_1", "question": "List every album whose title starts with A in alphabetical order.", "gold_sql": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;", "raw_output": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;", "predicted_sql": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 15, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:589", "db_id": "store_1", "question": "find the full name of employees who report to Nancy Edwards?", "gold_sql": "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 INNER JOIN employees AS T2 ON T1.reports_to = T2.id WHERE T2.first_name = 'Nancy'", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 INNER JOIN employees AS T2 ON T1.reports_to = T2.id WHERE T2.first_name = 'Nancy'", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:609", "db_id": "store_1", "question": "What is the total amount of money spent by Lucas Mancini?", "gold_sql": "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "raw_output": "SELECT SUM(T1.unit_price * T2.quantity) FROM invoice_lines AS T1 INNER JOIN invoices AS T3 ON T1.invoice_id = T3.id INNER JOIN customers AS T2 ON T3.customer_id = T2 WHERE T2.first_name = 'Lucas' AND T2.last_name = 'Mancini'", "predicted_sql": "SELECT SUM(T1.unit_price * T2.quantity) FROM invoice_lines AS T1 INNER JOIN invoices AS T3 ON T1.invoice_id = T3.id INNER JOIN customers AS T2 ON T3.customer_id = T2 WHERE T2.first_name = 'Lucas' AND T2.last_name = 'Mancini'", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.quantity", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:622", "db_id": "store_1", "question": "What is the name of all tracks in the Rock genre?", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock'", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:600", "db_id": "store_1", "question": "What si the youngest employee's first and last name?", "gold_sql": "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.birth_date DESC LIMIT 1", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.birth_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:567", "db_id": "store_1", "question": "List the number of invoices and the invoice total from California.", "gold_sql": "SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = \"CA\";", "raw_output": "SELECT count(T1.id), sum(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T1.billing_state = 'California'", "predicted_sql": "SELECT count(T1.id), sum(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T1.billing_state = 'California'", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:635", "db_id": "store_1", "question": "List the name of all tracks in the playlists of Movies.", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS T2 ON T1.id = T2.track_id INNER JOIN playlist_tracks AS T3 ON T2.playlist_id = T3.playlist_id INNER JOIN playlists AS T4 ON T3.playlist_id = T4 WHERE T4.name = 'Movies'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS T2 ON T1.id = T2.track_id INNER JOIN playlist_tracks AS T3 ON T2.playlist_id = T3.playlist_id INNER JOIN playlists AS T4 ON T3.playlist_id = T4 WHERE T4.name = 'Movies'", "generation_status": "ok", "prompt_tokens": 985, "generated_tokens": 78, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T4", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:576", "db_id": "store_1", "question": "What is the email and phone number of Astrid Gruber the customer?", "gold_sql": "SELECT email , phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";", "raw_output": "SELECT T1.email, T1.phone FROM customers AS T1 WHERE T1.first_name = 'Astrid' AND T1.last_name = 'Gruber'", "predicted_sql": "SELECT T1.email, T1.phone FROM customers AS T1 WHERE T1.first_name = 'Astrid' AND T1.last_name = 'Gruber'", "generation_status": "ok", "prompt_tokens": 986, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:633", "db_id": "store_1", "question": "List the name of tracks belongs to genre Rock or genre Jazz.", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock' OR T2.name = 'Jazz'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock' OR T2.name = 'Jazz'", "generation_status": "ok", "prompt_tokens": 986, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:563", "db_id": "store_1", "question": "List the number of invoices from the US, grouped by state.", "gold_sql": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state;", "raw_output": "SELECT T2.state, COUNT(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.state = 'US' GROUP BY T2.state", "predicted_sql": "SELECT T2.state, COUNT(T1.id) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T2.state = 'US' GROUP BY T2.state", "generation_status": "ok", "prompt_tokens": 986, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:587", "db_id": "store_1", "question": "What is the title, phone and hire date of Nancy Edwards?", "gold_sql": "SELECT title , phone , hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "raw_output": "SELECT T1.title, T1.phone, T1.hire_date FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "predicted_sql": "SELECT T1.title, T1.phone, T1.hire_date FROM employees AS T1 WHERE T1.first_name = 'Nancy' AND T1.last_name = 'Edwards'", "generation_status": "ok", "prompt_tokens": 986, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:636", "db_id": "store_1", "question": "What are the names of all tracks that are on playlists titled Movies?", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS T2 ON T1.id = T2.track_id INNER JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS T2 ON T1.id = T2.track_id INNER JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies'", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:645", "db_id": "store_1", "question": "Find the name of tracks which are in both Movies and music playlists.", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT ON T1.id = PT.track_id INNER JOIN playlists AS P ON PT.playlist_id = P.id INNER JOIN media_types AS MT ON T1.media_type_id = MT.id WHERE MT.name = 'Movies' AND T1.id IN (SELECT T2.track_id FROM tracks AS T2 INNER JOIN playlist_tracks AS PT2 ON T2.id = PT2.track_id INNER JOIN playlists AS P2 ON PT2.playlist_id = P2.id INNER JOIN media_types AS MT2 ON T2.media_type_id = MT2.id WHERE MT2.name = 'music')", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT ON T1.id = PT.track_id INNER JOIN playlists AS P ON PT.playlist_id = P.id INNER JOIN media_types AS MT ON T1.media_type_id = MT.id WHERE MT.name = 'Movies' AND T1.id IN (SELECT T2.track_id FROM tracks AS T2 INNER JOIN playlist_tracks AS PT2 ON T2.id = PT2.track_id INNER JOIN playlists AS P2 ON PT2.playlist_id = P2.id INNER JOIN media_types AS MT2 ON T2.media_type_id = MT2.id WHERE MT2.name = 'music')", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 160, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.track_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:642", "db_id": "store_1", "question": "What is the unit price of the tune \"Fast As a Shark\"?", "gold_sql": "SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\";", "raw_output": "SELECT T1.unit_price FROM tracks AS T1 INNER JOIN invoice_lines AS T2 ON T1.id = T2.track_id WHERE T1.name = 'Fast As a Shark'", "predicted_sql": "SELECT T1.unit_price FROM tracks AS T1 INNER JOIN invoice_lines AS T2 ON T1.id = T2.track_id WHERE T1.name = 'Fast As a Shark'", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:634", "db_id": "store_1", "question": "What are the names of the tracks that are Rock or Jazz songs?", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock' OR T2.name = 'Jazz'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock' OR T2.name = 'Jazz'", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:593", "db_id": "store_1", "question": "Find the full name of employee who supported the most number of customers.", "gold_sql": "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 INNER JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 1", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 INNER JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:623", "db_id": "store_1", "question": "What is title of album which track Balls to the Wall belongs to?", "gold_sql": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = \"Balls to the Wall\";", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = 'Balls to the Wall'", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = 'Balls to the Wall'", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:594", "db_id": "store_1", "question": "What is the full name of the employee who has the most customers?", "gold_sql": "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 1", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:603", "db_id": "store_1", "question": "Find the number of employees whose title is IT Staff from each city?", "gold_sql": "SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city", "raw_output": "SELECT city, count(id) FROM employees WHERE title = 'IT Staff' GROUP BY city", "predicted_sql": "SELECT city, count(id) FROM employees WHERE title = 'IT Staff' GROUP BY city", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:618", "db_id": "store_1", "question": "What is the composer who created the track \"Fast As a Shark\"?", "gold_sql": "SELECT composer FROM tracks WHERE name = \"Fast As a Shark\";", "raw_output": "SELECT T1.composer FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "predicted_sql": "SELECT T1.composer FROM tracks AS T1 WHERE T1.name = 'Fast As a Shark'", "generation_status": "ok", "prompt_tokens": 987, "generated_tokens": 23, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:556", "db_id": "store_1", "question": "What are the titles of all albums that start with A in alphabetical order?", "gold_sql": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name LIKE 'A%' ORDER BY T1.title", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name LIKE 'A%' ORDER BY T1.title", "generation_status": "ok", "prompt_tokens": 988, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:627", "db_id": "store_1", "question": "List title of albums have the number of tracks greater than 10.", "gold_sql": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10;", "raw_output": "SELECT T1.title FROM albums AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id GROUP BY T1.id HAVING count(*) > 10", "predicted_sql": "SELECT T1.title FROM albums AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id GROUP BY T1.id HAVING count(*) > 10", "generation_status": "ok", "prompt_tokens": 988, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:568", "db_id": "store_1", "question": "What is the number of invoices and total money billed in them from CA?", "gold_sql": "SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = \"CA\";", "raw_output": "SELECT count(T1.id), sum(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T1.billing_state = 'CA'", "predicted_sql": "SELECT count(T1.id), sum(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T1.billing_state = 'CA'", "generation_status": "ok", "prompt_tokens": 988, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:557", "db_id": "store_1", "question": "List the customers first and last name of 10 least expensive invoices.", "gold_sql": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name FROM customers AS T1 INNER JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.total LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM customers AS T1 INNER JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.total LIMIT 10", "generation_status": "ok", "prompt_tokens": 988, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:560", "db_id": "store_1", "question": "What are the total amount of money in the invoices billed from Chicago, Illinois?", "gold_sql": "SELECT sum(total) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "raw_output": "SELECT SUM(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T1.billing_city = 'Chicago' AND T1.billing_state = 'Illinois'", "predicted_sql": "SELECT SUM(T1.total) FROM invoices AS T1 INNER JOIN customers AS T2 ON T1.customer_id = T2.id WHERE T1.billing_city = 'Chicago' AND T1.billing_state = 'Illinois'", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:624", "db_id": "store_1", "question": "What is the name of the album that has the track Ball to the Wall?", "gold_sql": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = \"Balls to the Wall\";", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = 'Ball to the Wall'", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN tracks AS T2 ON T1.id = T2.album_id WHERE T2.name = 'Ball to the Wall'", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:628", "db_id": "store_1", "question": "What are the names of the albums that have more than 10 tracks?", "gold_sql": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10;", "raw_output": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T2.id) > 10", "predicted_sql": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T2.id) > 10", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:626", "db_id": "store_1", "question": "What is the name of all tracks in the album named Balls to the Wall?", "gold_sql": "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN albums AS T2 ON T1.album_id = T2.id WHERE T2.title = 'Balls to the Wall'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN albums AS T2 ON T1.album_id = T2.id WHERE T2.title = 'Balls to the Wall'", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:630", "db_id": "store_1", "question": "What are the names of all Rock tracks that are stored on MPEG audio files?", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id INNER JOIN media_types AS T3 ON T1.media_type_id = T3.id WHERE T2.name = 'Rock' AND T3.name = 'MPEG audio files'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id INNER JOIN media_types AS T3 ON T1.media_type_id = T3.id WHERE T2.name = 'Rock' AND T3.name = 'MPEG audio files'", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:590", "db_id": "store_1", "question": "What is the first and last name of the employee who reports to Nancy Edwards?", "gold_sql": "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 INNER JOIN employees AS T2 ON T1.reports_to = T2.id WHERE T2.first_name = 'Nancy'", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 INNER JOIN employees AS T2 ON T1.reports_to = T2.id WHERE T2.first_name = 'Nancy'", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:643", "db_id": "store_1", "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT ON T1.id = PT.track_id INNER JOIN playlists AS P ON PT.playlist_id = P.id WHERE P.name = 'Movies' AND T1.id NOT IN (SELECT T2.track_id FROM tracks AS T2 INNER JOIN playlist_tracks AS PT2 ON T2.id = PT2.track_id INNER JOIN playlists AS P2 ON PT2.playlist_id = P2.id WHERE P2.name = 'Music')", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT ON T1.id = PT.track_id INNER JOIN playlists AS P ON PT.playlist_id = P.id WHERE P.name = 'Movies' AND T1.id NOT IN (SELECT T2.track_id FROM tracks AS T2 INNER JOIN playlist_tracks AS PT2 ON T2.id = PT2.track_id INNER JOIN playlists AS P2 ON PT2.playlist_id = P2.id WHERE P2.name = 'Music')", "generation_status": "ok", "prompt_tokens": 989, "generated_tokens": 119, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.track_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:583", "db_id": "store_1", "question": "List the name of albums that are released by aritist whose name has 'Led'", "gold_sql": "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name LIKE '%Led%';", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name LIKE '%Led%';", "generation_status": "ok", "prompt_tokens": 990, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:631", "db_id": "store_1", "question": "List the name of tracks belongs to genre Rock or media type is MPEG audio file.", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock' UNION SELECT T1.name FROM tracks AS T1 INNER JOIN media_types AS T2 ON T1.media_type_id = T2.id WHERE T2.name = 'MPEG audio file'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id WHERE T2.name = 'Rock' UNION SELECT T1.name FROM tracks AS T1 INNER JOIN media_types AS T2 ON T1.media_type_id = T2.id WHERE T2.name = 'MPEG audio file'", "generation_status": "ok", "prompt_tokens": 990, "generated_tokens": 83, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:637", "db_id": "store_1", "question": "List the name of playlist which has number of tracks greater than 100.", "gold_sql": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100;", "raw_output": "SELECT T1.name FROM playlists AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.playlist_id GROUP BY T1.id HAVING count(T2.track_id) > 100", "predicted_sql": "SELECT T1.name FROM playlists AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.playlist_id GROUP BY T1.id HAVING count(T2.track_id) > 100", "generation_status": "ok", "prompt_tokens": 990, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:638", "db_id": "store_1", "question": "What are the names of all playlists that have more than 100 tracks?", "gold_sql": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100;", "raw_output": "SELECT T1.name FROM playlists AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.playlist_id GROUP BY T1.id HAVING count(T2.track_id) > 100", "predicted_sql": "SELECT T1.name FROM playlists AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.playlist_id GROUP BY T1.id HAVING count(T2.track_id) > 100", "generation_status": "ok", "prompt_tokens": 990, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:588", "db_id": "store_1", "question": "What is the title, phone number and hire date for the employee named Nancy Edwards?", "gold_sql": "SELECT title , phone , hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "raw_output": "SELECT T1.title, T1.phone, T1.hire_date FROM employees AS T1 WHERE T1.first_name = 'Nancy'", "predicted_sql": "SELECT T1.title, T1.phone, T1.hire_date FROM employees AS T1 WHERE T1.first_name = 'Nancy'", "generation_status": "ok", "prompt_tokens": 990, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:538", "db_id": "store_1", "question": "What are the top 5 countries by number of invoices and how many do they have?", "gold_sql": "SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;", "raw_output": "SELECT T1.billing_country, count(*) FROM invoices AS T1 GROUP BY T1.billing_country ORDER BY count(*) DESC LIMIT 5", "predicted_sql": "SELECT T1.billing_country, count(*) FROM invoices AS T1 GROUP BY T1.billing_country ORDER BY count(*) DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:544", "db_id": "store_1", "question": "What are the first and last names of the 5 customers who purchased something most recently?", "gold_sql": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;", "raw_output": "SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.invoice_date DESC LIMIT 5", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.invoice_date DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:549", "db_id": "store_1", "question": "List the top 5 genres by number of tracks. List genres name and total tracks.", "gold_sql": "SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;", "raw_output": "SELECT T1.name, count(T2.id) AS total_tracks FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.id ORDER BY total_tracks DESC LIMIT 5", "predicted_sql": "SELECT T1.name, count(T2.id) AS total_tracks FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.id ORDER BY total_tracks DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:558", "db_id": "store_1", "question": "What are the first and last names of the customers with the 10 cheapest invoices?", "gold_sql": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name FROM customers AS T1 INNER JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.total LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM customers AS T1 INNER JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.total LIMIT 10", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 48, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:629", "db_id": "store_1", "question": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id INNER JOIN media_types AS T3 ON T1.media_type_id = T3.id WHERE T2.name = 'Rock' AND T3.name = 'MPEG audio file'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id INNER JOIN media_types AS T3 ON T1.media_type_id = T3.id WHERE T2.name = 'Rock' AND T3.name = 'MPEG audio file'", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:542", "db_id": "store_1", "question": "What are the names of the countries and average invoice size of the top countries by size?", "gold_sql": "SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;", "raw_output": "SELECT T1.country, AVG(T2.total) FROM invoices AS T2 INNER JOIN customers AS T1 ON T2.customer_id = T1.id GROUP BY T1.country ORDER BY AVG(T2.total) DESC LIMIT 1", "predicted_sql": "SELECT T1.country, AVG(T2.total) FROM invoices AS T2 INNER JOIN customers AS T1 ON T2.customer_id = T1.id GROUP BY T1.country ORDER BY AVG(T2.total) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:602", "db_id": "store_1", "question": "What are the first and last names of the top 10 longest-serving employees?", "gold_sql": "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.hire_date LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.hire_date LIMIT 10", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:550", "db_id": "store_1", "question": "How many tracks does each genre have and what are the names of the top 5?", "gold_sql": "SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;", "raw_output": "SELECT T1.name, COUNT(T2.id) AS track_count FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name ORDER BY track_count DESC LIMIT 5", "predicted_sql": "SELECT T1.name, COUNT(T2.id) AS track_count FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name ORDER BY track_count DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:599", "db_id": "store_1", "question": "Who is the youngest employee in the company? List employee's first and last name.", "gold_sql": "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.birth_date DESC LIMIT 1", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.birth_date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:646", "db_id": "store_1", "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT1 ON T1.id = PT1.track_id INNER JOIN playlists AS P1 ON PT1.playlist_id = P1.id INNER JOIN genres AS G1 ON T1.genre_id = G1.id WHERE G1.name = 'Movies' AND T1.id IN (SELECT T2.id FROM tracks AS T2 JOIN playlist_tracks AS PT2 ON T2.id = PT2.track_id JOIN playlists AS P3 ON PT2.playlist_id = P3.id WHERE P3.name = 'music')", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT1 ON T1.id = PT1.track_id INNER JOIN playlists AS P1 ON PT1.playlist_id = P1.id INNER JOIN genres AS G1 ON T1.genre_id = G1.id WHERE G1.name = 'Movies' AND T1.id IN (SELECT T2.id FROM tracks AS T2 JOIN playlist_tracks AS PT2 ON T2.id = PT2.track_id JOIN playlists AS P3 ON PT2.playlist_id = P3.id WHERE P3.name = 'music')", "generation_status": "ok", "prompt_tokens": 991, "generated_tokens": 138, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:606", "db_id": "store_1", "question": "What are the first and last names of all the employees and how many people report to them?", "gold_sql": "SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;", "raw_output": "SELECT T1.first_name, T1.last_name, COUNT(T2.id) FROM employees AS T1 LEFT JOIN employees AS T2 ON T1.id = T2.reports_to GROUP BY T1.id;", "predicted_sql": "SELECT T1.first_name, T1.last_name, COUNT(T2.id) FROM employees AS T1 LEFT JOIN employees AS T2 ON T1.id = T2.reports_to GROUP BY T1.id;", "generation_status": "ok", "prompt_tokens": 992, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:543", "db_id": "store_1", "question": "Find out 5 customers who most recently purchased something. List customers' first and last name.", "gold_sql": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;", "raw_output": "SELECT T1.first_name, T1.last_name FROM customers AS T1 INNER JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.invoice_date DESC LIMIT 5", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM customers AS T1 INNER JOIN invoices AS T2 ON T1.id = T2.customer_id ORDER BY T2.invoice_date DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 992, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:540", "db_id": "store_1", "question": "What are the names of the top 8 countries by total invoice size and what are those sizes?", "gold_sql": "SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;", "raw_output": "SELECT T1.billing_country, SUM(T2.total) AS total_size FROM invoices AS T1 INNER JOIN customers AS T3 ON T1.customer_id = T3.id GROUP BY T1.billing_country ORDER BY total_size DESC LIMIT 8", "predicted_sql": "SELECT T1.billing_country, SUM(T2.total) AS total_size FROM invoices AS T1 INNER JOIN customers AS T3 ON T1.customer_id = T3.id GROUP BY T1.billing_country ORDER BY total_size DESC LIMIT 8", "generation_status": "ok", "prompt_tokens": 993, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.total", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:644", "db_id": "store_1", "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "gold_sql": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT ON T1.id = PT.track_id INNER JOIN playlists AS P ON PT.playlist_id = P.id INNER JOIN playlists AS P2 ON P2.name = 'Movies' LEFT JOIN playlist_tracks AS PT2 ON T1.id = PT2.track_id INNER JOIN playlists AS P3 ON PT2.playlist_id = P3.id WHERE P.name = 'Movies' AND T1.id NOT IN (SELECT T2.track_id FROM playlist_tracks AS PT2 JOIN playlists AS P3 ON PT2.playlist_id = P3 WHERE P3.name = 'Music')", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN playlist_tracks AS PT ON T1.id = PT.track_id INNER JOIN playlists AS P ON PT.playlist_id = P.id INNER JOIN playlists AS P2 ON P2.name = 'Movies' LEFT JOIN playlist_tracks AS PT2 ON T1.id = PT2.track_id INNER JOIN playlists AS P3 ON PT2.playlist_id = P3.id WHERE P.name = 'Movies' AND T1.id NOT IN (SELECT T2.track_id FROM playlist_tracks AS PT2 JOIN playlists AS P3 ON PT2.playlist_id = P3 WHERE P3.name = 'Music')", "generation_status": "ok", "prompt_tokens": 993, "generated_tokens": 151, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.track_id", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:632", "db_id": "store_1", "question": "What are the names of all tracks that belong to the Rock genre and whose media type is MPEG?", "gold_sql": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";", "raw_output": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id INNER JOIN media_types AS T3 ON T1.media_type_id = T3.id WHERE T2.name = 'Rock' AND T3.name = 'MPEG'", "predicted_sql": "SELECT T1.name FROM tracks AS T1 INNER JOIN genres AS T2 ON T1.genre_id = T2.id INNER JOIN media_types AS T3 ON T1.media_type_id = T3.id WHERE T2.name = 'Rock' AND T3.name = 'MPEG'", "generation_status": "ok", "prompt_tokens": 993, "generated_tokens": 70, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:537", "db_id": "store_1", "question": "A list of the top 5 countries by number of invoices. List country name and number of invoices.", "gold_sql": "SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;", "raw_output": "SELECT T1.billing_country, count(T1.id) FROM invoices AS T1 GROUP BY T1.billing_country ORDER BY count(T1.id) DESC LIMIT 5", "predicted_sql": "SELECT T1.billing_country, count(T1.id) FROM invoices AS T1 GROUP BY T1.billing_country ORDER BY count(T1.id) DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 994, "generated_tokens": 42, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:601", "db_id": "store_1", "question": "List top 10 employee work longest in the company. List employee's first and last name.", "gold_sql": "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.hire_date LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name FROM employees AS T1 ORDER BY T1.hire_date LIMIT 10", "generation_status": "ok", "prompt_tokens": 994, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:584", "db_id": "store_1", "question": "What is the title of the album that was released by the artist whose name has the phrase 'Led'?", "gold_sql": "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'", "raw_output": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name LIKE '%Led%';", "predicted_sql": "SELECT T1.title FROM albums AS T1 INNER JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name LIKE '%Led%';", "generation_status": "ok", "prompt_tokens": 994, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:541", "db_id": "store_1", "question": "A list of the top 10 countries by average invoice size. List country name and average invoice size.", "gold_sql": "SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;", "raw_output": "SELECT T1.billing_country, AVG(T2.total) FROM invoices AS T1 JOIN invoice_lines AS T3 ON T1.id = T3.invoice_id JOIN tracks AS T4 ON T3.track_id = T4.id JOIN albums AS T5 ON T4.album_id = T5.id JOIN artists AS T6 ON T5.artist_id = T6.id GROUP BY T1.billing_country ORDER BY AVG(T2.total) DESC LIMIT 10", "predicted_sql": "SELECT T1.billing_country, AVG(T2.total) FROM invoices AS T1 JOIN invoice_lines AS T3 ON T1.id = T3.invoice_id JOIN tracks AS T4 ON T3.track_id = T4.id JOIN albums AS T5 ON T4.album_id = T5.id JOIN artists AS T6 ON T5.artist_id = T6.id GROUP BY T1.billing_country ORDER BY AVG(T2.total) DESC LIMIT 10", "generation_status": "ok", "prompt_tokens": 995, "generated_tokens": 113, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.total", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:539", "db_id": "store_1", "question": "A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.", "gold_sql": "SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;", "raw_output": "SELECT T1.billing_country, SUM(T2.total) AS gross_invoice_size FROM invoices AS T1 JOIN customers AS T3 ON T1.customer_id = T3.id GROUP BY T1.billing_country ORDER BY gross_invoice_size DESC LIMIT 8", "predicted_sql": "SELECT T1.billing_country, SUM(T2.total) AS gross_invoice_size FROM invoices AS T1 JOIN customers AS T3 ON T1.customer_id = T3.id GROUP BY T1.billing_country ORDER BY gross_invoice_size DESC LIMIT 8", "generation_status": "ok", "prompt_tokens": 996, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.total", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:547", "db_id": "store_1", "question": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.", "gold_sql": "SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name, SUM(T2.quantity * T2.unit_price) FROM customers AS T1 INNER JOIN invoices AS T3 ON T1.id = T3.customer_id INNER JOIN invoice_lines AS T2 ON T3.id = T2.invoice_id GROUP BY T1.id ORDER BY SUM(T2.quantity * T2.unit_price) DESC LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name, SUM(T2.quantity * T2.unit_price) FROM customers AS T1 INNER JOIN invoices AS T3 ON T1.id = T3.customer_id INNER JOIN invoice_lines AS T2 ON T3.id = T2.invoice_id GROUP BY T1.id ORDER BY SUM(T2.quantity * T2.unit_price) DESC LIMIT 10", "generation_status": "ok", "prompt_tokens": 997, "generated_tokens": 100, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:605", "db_id": "store_1", "question": "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.", "gold_sql": "SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;", "raw_output": "SELECT T1.first_name, T1.last_name, count(T2.id)\nFROM employees AS T1\nJOIN employees AS T2 ON T1.id = T2.reports_to\nGROUP BY T1.id\nORDER BY count(T2.id) DESC\nLIMIT 1", "predicted_sql": "SELECT T1.first_name, T1.last_name, count(T2.id)\nFROM employees AS T1\nJOIN employees AS T2 ON T1.id = T2.reports_to\nGROUP BY T1.id\nORDER BY count(T2.id) DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 999, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:546", "db_id": "store_1", "question": "What are the top 10 customers' first and last names by total number of orders and how many orders did they make?", "gold_sql": "SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name, COUNT(T2.id) AS order_count FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name, COUNT(T2.id) AS order_count FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 10", "generation_status": "ok", "prompt_tokens": 999, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:548", "db_id": "store_1", "question": "What are the top 10 customers' first and last names with the highest gross sales, and also what are the sales?", "gold_sql": "SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name, SUM(T2.quantity * T2.unit_price) AS total_sales FROM customers AS T1 INNER JOIN invoices AS T3 ON T1.id = T3.customer_id INNER JOIN invoice_lines AS T2 ON T3.id = T2.invoice_id GROUP BY T1.id ORDER BY total_sales DESC LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name, SUM(T2.quantity * T2.unit_price) AS total_sales FROM customers AS T1 INNER JOIN invoices AS T3 ON T1.id = T3.customer_id INNER JOIN invoice_lines AS T2 ON T3.id = T2.invoice_id GROUP BY T1.id ORDER BY total_sales DESC LIMIT 10", "generation_status": "ok", "prompt_tokens": 999, "generated_tokens": 93, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:545", "db_id": "store_1", "question": "Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.", "gold_sql": "SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;", "raw_output": "SELECT T1.first_name, T1.last_name, COUNT(T2.id) AS total_orders FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 10", "predicted_sql": "SELECT T1.first_name, T1.last_name, COUNT(T2.id) AS total_orders FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id GROUP BY T1.id ORDER BY COUNT(T2.id) DESC LIMIT 10", "generation_status": "ok", "prompt_tokens": 1001, "generated_tokens": 69, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:1293", "db_id": "soccer_1", "question": "List all country and league names.", "gold_sql": "SELECT T1.name , T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id", "raw_output": "SELECT T1.name, T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id", "predicted_sql": "SELECT T1.name, T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id", "generation_status": "ok", "prompt_tokens": 1126, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1294", "db_id": "soccer_1", "question": "How many leagues are there in England?", "gold_sql": "SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id WHERE T1.name = \"England\"", "raw_output": "SELECT count(*) FROM League WHERE country_id = (SELECT id FROM Country WHERE name = 'England')", "predicted_sql": "SELECT count(*) FROM League WHERE country_id = (SELECT id FROM Country WHERE name = 'England')", "generation_status": "ok", "prompt_tokens": 1127, "generated_tokens": 22, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:1295", "db_id": "soccer_1", "question": "What is the average weight of all players?", "gold_sql": "SELECT avg(weight) FROM Player", "raw_output": "SELECT AVG(T1.weight) FROM Player;", "predicted_sql": "SELECT AVG(T1.weight) FROM Player;", "generation_status": "ok", "prompt_tokens": 1128, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.weight", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1296", "db_id": "soccer_1", "question": "What is the maximum and minimum height of all players?", "gold_sql": "SELECT max(weight) , min(weight) FROM Player", "raw_output": "SELECT MAX(height), MIN(height) FROM Player", "predicted_sql": "SELECT MAX(height), MIN(height) FROM Player", "generation_status": "ok", "prompt_tokens": 1130, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1305", "db_id": "soccer_1", "question": "Who are the top 3 players in terms of overall rating?", "gold_sql": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3", "raw_output": "SELECT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id ORDER BY T2.overall_rating DESC LIMIT 3", "predicted_sql": "SELECT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id ORDER BY T2.overall_rating DESC LIMIT 3", "generation_status": "ok", "prompt_tokens": 1132, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1298", "db_id": "soccer_1", "question": "What are the names of players who have the best dribbling?", "gold_sql": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling = ( SELECT max(overall_rating) FROM Player_Attributes)", "raw_output": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id ORDER BY T2.dribbling DESC LIMIT 1", "predicted_sql": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id ORDER BY T2.dribbling DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1132, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1297", "db_id": "soccer_1", "question": "List all player names who have an overall rating higher than the average.", "gold_sql": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > ( SELECT avg(overall_rating) FROM Player_Attributes )", "raw_output": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id GROUP BY T1.player_name HAVING AVG(T2.overall_rating) > (SELECT AVG(overall_rating) FROM Player_Attributes);", "predicted_sql": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id GROUP BY T1.player_name HAVING AVG(T2.overall_rating) > (SELECT AVG(overall_rating) FROM Player_Attributes);", "generation_status": "ok", "prompt_tokens": 1133, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1306", "db_id": "soccer_1", "question": "List the names and birthdays of the top five players in terms of potential.", "gold_sql": "SELECT DISTINCT T1.player_name , T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5", "raw_output": "SELECT T1.player_name, T1.birthday FROM Player AS T1 ORDER BY T1.potential DESC LIMIT 5", "predicted_sql": "SELECT T1.player_name, T1.birthday FROM Player AS T1 ORDER BY T1.potential DESC LIMIT 5", "generation_status": "ok", "prompt_tokens": 1134, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.potential", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:1301", "db_id": "soccer_1", "question": "What is the average rating for right-footed players and left-footed players?", "gold_sql": "SELECT preferred_foot , avg(overall_rating) FROM Player_Attributes GROUP BY preferred_foot", "raw_output": "SELECT AVG(T1.overall_rating) FROM Player_Attributes AS T1 INNER JOIN Player AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.preferred_foot = 'Right' UNION ALL SELECT AVG(T1.overall_rating) FROM Player_Attributes AS T1 INNER JOIN Player AS T2 ON T1.player_fifa_api_id = T2.player_fifa_api_id WHERE T1.preferred_foot = 'Left'", "predicted_sql": "SELECT AVG(T1.overall_rating) FROM Player_Attributes AS T1 INNER JOIN Player AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.preferred_foot = 'Right' UNION ALL SELECT AVG(T1.overall_rating) FROM Player_Attributes AS T1 INNER JOIN Player AS T2 ON T1.player_fifa_api_id = T2.player_fifa_api_id WHERE T1.preferred_foot = 'Left'", "generation_status": "ok", "prompt_tokens": 1135, "generated_tokens": 113, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1299", "db_id": "soccer_1", "question": "List the names of all players who have a crossing score higher than 90 and prefer their right foot.", "gold_sql": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = \"right\"", "raw_output": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = 'Right'", "predicted_sql": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = 'Right'", "generation_status": "ok", "prompt_tokens": 1141, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1300", "db_id": "soccer_1", "question": "List the names of all left-footed players who have overall rating between 85 and 90.", "gold_sql": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = \"left\" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90", "raw_output": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = 'Left' AND T2.overall_rating BETWEEN 85 AND 90", "predicted_sql": "SELECT T1.player_name FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = 'Left' AND T2.overall_rating BETWEEN 85 AND 90", "generation_status": "ok", "prompt_tokens": 1141, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1302", "db_id": "soccer_1", "question": "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?", "gold_sql": "SELECT preferred_foot , count(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot", "raw_output": "SELECT count(*) FROM Player_Attributes WHERE overall_rating > 80 AND preferred_foot = 'Right'\nUNION ALL\nSELECT count(*) FROM Player_Attributes WHERE overall_rating > 80 AND preferred_foot = 'Left'", "predicted_sql": "SELECT count(*) FROM Player_Attributes WHERE overall_rating > 80 AND preferred_foot = 'Right'\nUNION ALL\nSELECT count(*) FROM Player_Attributes WHERE overall_rating > 80 AND preferred_foot = 'Left'", "generation_status": "ok", "prompt_tokens": 1143, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1304", "db_id": "soccer_1", "question": "List all of the ids for left-footed players with a height between 180cm and 190cm.", "gold_sql": "SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = \"left\"", "raw_output": "SELECT T1.player_api_id FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id WHERE T2.preferred_foot = 'Left' AND T1.height BETWEEN 180 AND 190", "predicted_sql": "SELECT T1.player_api_id FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.id = T2.player_api_id WHERE T2.preferred_foot = 'Left' AND T1.height BETWEEN 180 AND 190", "generation_status": "ok", "prompt_tokens": 1145, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:1303", "db_id": "soccer_1", "question": "List all of the player ids with a height of at least 180cm and an overall rating higher than 85.", "gold_sql": "SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85", "raw_output": "SELECT T1.id FROM Player AS T1 WHERE T1.height >= 180 AND T1.overall_rating > 85", "predicted_sql": "SELECT T1.id FROM Player AS T1 WHERE T1.height >= 180 AND T1.overall_rating > 85", "generation_status": "ok", "prompt_tokens": 1146, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.overall_rating", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2187", "db_id": "formula_1", "question": "What are the numbers of constructors for different nationalities?", "gold_sql": "SELECT count(*) , nationality FROM constructors GROUP BY nationality", "raw_output": "SELECT T2.nationality, COUNT(T1.constructorId) FROM constructors AS T1 JOIN drivers AS T2 ON T1.constructorId = T2.driverId GROUP BY T2.nationality", "predicted_sql": "SELECT T2.nationality, COUNT(T1.constructorId) FROM constructors AS T1 JOIN drivers AS T2 ON T1.constructorId = T2.driverId GROUP BY T2.nationality", "generation_status": "ok", "prompt_tokens": 1351, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2153", "db_id": "formula_1", "question": "What is the name of the race held most recently?", "gold_sql": "SELECT name FROM races ORDER BY date DESC LIMIT 1", "raw_output": "SELECT T1.name FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "predicted_sql": "SELECT T1.name FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1352, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2188", "db_id": "formula_1", "question": "For each nationality, how many different constructors are there?", "gold_sql": "SELECT count(*) , nationality FROM constructors GROUP BY nationality", "raw_output": "SELECT count(DISTINCT T3.constructorId) FROM drivers AS T1 JOIN constructors AS T3 ON T1.driverId = T3.constructorId GROUP BY T1.nationality", "predicted_sql": "SELECT count(DISTINCT T3.constructorId) FROM drivers AS T1 JOIN constructors AS T3 ON T1.driverId = T3.constructorId GROUP BY T1.nationality", "generation_status": "ok", "prompt_tokens": 1352, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2189", "db_id": "formula_1", "question": "What are the numbers of races for each constructor id?", "gold_sql": "SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid", "raw_output": "SELECT T1.constructorId, COUNT(T2.raceId) FROM constructors AS T1 JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId GROUP BY T1.constructorId", "predicted_sql": "SELECT T1.constructorId, COUNT(T2.raceId) FROM constructors AS T1 JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId GROUP BY T1.constructorId", "generation_status": "ok", "prompt_tokens": 1352, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2190", "db_id": "formula_1", "question": "For each constructor id, how many races are there?", "gold_sql": "SELECT count(*) , constructorid FROM constructorStandings GROUP BY constructorid", "raw_output": "SELECT T1.constructorId, count(T2.raceId) FROM constructors AS T1 JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId GROUP BY T1.constructorId", "predicted_sql": "SELECT T1.constructorId, count(T2.raceId) FROM constructors AS T1 JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId GROUP BY T1.constructorId", "generation_status": "ok", "prompt_tokens": 1352, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2154", "db_id": "formula_1", "question": "What is the name of the race that occurred most recently?", "gold_sql": "SELECT name FROM races ORDER BY date DESC LIMIT 1", "raw_output": "SELECT T1.name FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "predicted_sql": "SELECT T1.name FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1353, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2155", "db_id": "formula_1", "question": "What is the name and date of the most recent race?", "gold_sql": "SELECT name , date FROM races ORDER BY date DESC LIMIT 1", "raw_output": "SELECT T1.name, T1.date FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "predicted_sql": "SELECT T1.name, T1.date FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1353, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2199", "db_id": "formula_1", "question": "List the forenames of all distinct drivers in alphabetical order?", "gold_sql": "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC", "raw_output": "SELECT DISTINCT forename FROM drivers ORDER BY forename;", "predicted_sql": "SELECT DISTINCT forename FROM drivers ORDER BY forename;", "generation_status": "ok", "prompt_tokens": 1353, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2177", "db_id": "formula_1", "question": "Find the forename and surname of drivers whose nationality is German?", "gold_sql": "SELECT forename , surname FROM drivers WHERE nationality = \"German\"", "raw_output": "SELECT T1.forename, T1.surname FROM drivers AS T1 WHERE T1.nationality = 'German'", "predicted_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 WHERE T1.nationality = 'German'", "generation_status": "ok", "prompt_tokens": 1354, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2213", "db_id": "formula_1", "question": "What are the names of circuits that belong to UK or Malaysia?", "gold_sql": "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"", "raw_output": "SELECT T1.name FROM circuits AS T1 WHERE T1.country = 'UK' OR T1.country = 'Malaysia'", "predicted_sql": "SELECT T1.name FROM circuits AS T1 WHERE T1.country = 'UK' OR T1.country = 'Malaysia'", "generation_status": "ok", "prompt_tokens": 1354, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2174", "db_id": "formula_1", "question": "How many drivers did not race in 2009?", "gold_sql": "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )", "raw_output": "SELECT count(T1.driverId) FROM drivers AS T1 LEFT JOIN races AS T2 ON T1.driverId = T2.driverId WHERE T2.year != 2009 OR T2.year IS NULL", "predicted_sql": "SELECT count(T1.driverId) FROM drivers AS T1 LEFT JOIN races AS T2 ON T1.driverId = T2.driverId WHERE T2.year != 2009 OR T2.year IS NULL", "generation_status": "ok", "prompt_tokens": 1354, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.driverId", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2178", "db_id": "formula_1", "question": "What is the first and last name of all the German drivers?", "gold_sql": "SELECT forename , surname FROM drivers WHERE nationality = \"German\"", "raw_output": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T1.nationality = 'Germany'", "predicted_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN drivers AS T2 ON T1.driverId = T2.driverId WHERE T1.nationality = 'Germany'", "generation_status": "ok", "prompt_tokens": 1354, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2216", "db_id": "formula_1", "question": "What are the ids and locations of all circuits in France or Belgium?", "gold_sql": "SELECT circuitid , LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\"", "raw_output": "SELECT circuitId, location FROM circuits WHERE country = 'France' OR country = 'Belgium'", "predicted_sql": "SELECT circuitId, location FROM circuits WHERE country = 'France' OR country = 'Belgium'", "generation_status": "ok", "prompt_tokens": 1355, "generated_tokens": 20, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2157", "db_id": "formula_1", "question": "Find the names of all races held in 2017.", "gold_sql": "SELECT name FROM races WHERE YEAR = 2017", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN seasons AS T2 ON T1.year = T2.year WHERE T2.year = 2017", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN seasons AS T2 ON T1.year = T2.year WHERE T2.year = 2017", "generation_status": "ok", "prompt_tokens": 1355, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2202", "db_id": "formula_1", "question": "What are the different names of all the races in reverse alphabetical order?", "gold_sql": "SELECT DISTINCT name FROM races ORDER BY name DESC", "raw_output": "SELECT name FROM races ORDER BY name DESC", "predicted_sql": "SELECT name FROM races ORDER BY name DESC", "generation_status": "ok", "prompt_tokens": 1355, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2215", "db_id": "formula_1", "question": "Find the id and location of circuits that belong to France or Belgium?", "gold_sql": "SELECT circuitid , LOCATION FROM circuits WHERE country = \"France\" OR country = \"Belgium\"", "raw_output": "SELECT T1.circuitId, T1.location FROM circuits AS T1 WHERE T1.country IN ('France', 'Belgium')", "predicted_sql": "SELECT T1.circuitId, T1.location FROM circuits AS T1 WHERE T1.country IN ('France', 'Belgium')", "generation_status": "ok", "prompt_tokens": 1355, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2200", "db_id": "formula_1", "question": "What are the first names of all the different drivers in alphabetical order?", "gold_sql": "SELECT DISTINCT forename FROM drivers ORDER BY forename ASC", "raw_output": "SELECT DISTINCT forename FROM drivers ORDER BY forename;", "predicted_sql": "SELECT DISTINCT forename FROM drivers ORDER BY forename;", "generation_status": "ok", "prompt_tokens": 1355, "generated_tokens": 12, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2156", "db_id": "formula_1", "question": "What is the name and date of the race that occurred most recently?", "gold_sql": "SELECT name , date FROM races ORDER BY date DESC LIMIT 1", "raw_output": "SELECT T1.name, T1.date FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "predicted_sql": "SELECT T1.name, T1.date FROM races AS T1 ORDER BY T1.date DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1355, "generated_tokens": 26, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2201", "db_id": "formula_1", "question": "List the names of all distinct races in reversed lexicographic order?", "gold_sql": "SELECT DISTINCT name FROM races ORDER BY name DESC", "raw_output": "SELECT name FROM races ORDER BY name DESC", "predicted_sql": "SELECT name FROM races ORDER BY name DESC", "generation_status": "ok", "prompt_tokens": 1356, "generated_tokens": 9, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2231", "db_id": "formula_1", "question": "Find the id and surname of the driver who participated the most number of races?", "gold_sql": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId, T1.surname ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "predicted_sql": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId, T1.surname ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1357, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2217", "db_id": "formula_1", "question": "Find the names of Japanese constructors that have once earned more than 5 points?", "gold_sql": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5", "raw_output": "SELECT T1.name FROM constructors AS T1 INNER JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = 'Japan' AND T2.points > 5", "predicted_sql": "SELECT T1.name FROM constructors AS T1 INNER JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = 'Japan' AND T2.points > 5", "generation_status": "ok", "prompt_tokens": 1357, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2168", "db_id": "formula_1", "question": "What is the id and last name of the driver with the longest laptime?", "gold_sql": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1", "raw_output": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time DESC LIMIT 1", "predicted_sql": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1357, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2166", "db_id": "formula_1", "question": "What is the forename and surname of the driver with the shortest laptime?", "gold_sql": "SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1", "raw_output": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time LIMIT 1", "predicted_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time LIMIT 1", "generation_status": "ok", "prompt_tokens": 1357, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2214", "db_id": "formula_1", "question": "What are the names of all the circuits that are in the UK or Malaysia?", "gold_sql": "SELECT name FROM circuits WHERE country = \"UK\" OR country = \"Malaysia\"", "raw_output": "SELECT T1.name FROM circuits AS T1 WHERE T1.country = 'UK' OR T1.country = 'Malaysia'", "predicted_sql": "SELECT T1.name FROM circuits AS T1 WHERE T1.country = 'UK' OR T1.country = 'Malaysia'", "generation_status": "ok", "prompt_tokens": 1357, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2232", "db_id": "formula_1", "question": "What are the ids and last names of all drivers who participated in the most races?", "gold_sql": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "predicted_sql": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 57, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2194", "db_id": "formula_1", "question": "What are the names of all races held after 2000 in Spain?", "gold_sql": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T2.country = 'Spain' AND T1.year > 2000", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T2.country = 'Spain' AND T1.year > 2000", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2173", "db_id": "formula_1", "question": "How many drivers did not participate in the races held in 2009?", "gold_sql": "SELECT count(DISTINCT driverId) FROM results WHERE raceId NOT IN( SELECT raceId FROM races WHERE YEAR != 2009 )", "raw_output": "SELECT count(T1.driverId) FROM drivers AS T1 LEFT JOIN races AS T2 ON T1.driverId IN (SELECT T3.driverId FROM results AS T3 JOIN races AS T4 ON T3.raceId = T4.raceId WHERE T4.year = 2009) WHERE T1.driverId IS NULL", "predicted_sql": "SELECT count(T1.driverId) FROM drivers AS T1 LEFT JOIN races AS T2 ON T1.driverId IN (SELECT T3.driverId FROM results AS T3 JOIN races AS T4 ON T3.raceId = T4.raceId WHERE T4.year = 2009) WHERE T1.driverId IS NULL", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 77, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2192", "db_id": "formula_1", "question": "What are the names of the races held after 2017 in Spain?", "gold_sql": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T2.country = 'Spain' AND T1.year > 2017", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T2.country = 'Spain' AND T1.year > 2017", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2165", "db_id": "formula_1", "question": "What are the forename and surname of the driver who has the smallest laptime?", "gold_sql": "SELECT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1", "raw_output": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time LIMIT 1", "predicted_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time LIMIT 1", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2172", "db_id": "formula_1", "question": "How many drivers were in the Australian Grand Prix held in 2009?", "gold_sql": "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009", "raw_output": "SELECT count(T1.driverId) FROM drivers AS T1 INNER JOIN qualifying AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.year = 2009", "predicted_sql": "SELECT count(T1.driverId) FROM drivers AS T1 INNER JOIN qualifying AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.year = 2009", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2167", "db_id": "formula_1", "question": "What is the id and family name of the driver who has the longest laptime?", "gold_sql": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1", "raw_output": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time DESC LIMIT 1", "predicted_sql": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId ORDER BY T2.time DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1358, "generated_tokens": 45, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:2171", "db_id": "formula_1", "question": "How many drivers participated in the race Australian Grand Prix held in 2009?", "gold_sql": "SELECT count(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = \"Australian Grand Prix\" AND YEAR = 2009", "raw_output": "SELECT count(T1.driverId) FROM drivers AS T1 INNER JOIN qualifying AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.year = 2009", "predicted_sql": "SELECT count(T1.driverId) FROM drivers AS T1 INNER JOIN qualifying AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.year = 2009", "generation_status": "ok", "prompt_tokens": 1359, "generated_tokens": 73, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2218", "db_id": "formula_1", "question": "What are the names of all the Japanese constructors that have earned more than 5 points?", "gold_sql": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5", "raw_output": "SELECT T1.name FROM constructors AS T1 INNER JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId WHERE T2.points > 5 AND T1.nationality = 'Japan'", "predicted_sql": "SELECT T1.name FROM constructors AS T1 INNER JOIN constructorResults AS T2 ON T1.constructorId = T2.constructorId WHERE T2.points > 5 AND T1.nationality = 'Japan'", "generation_status": "ok", "prompt_tokens": 1359, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2220", "db_id": "formula_1", "question": "What is the average fastest lap speed for the Monaco Grand Prix in 2008?", "gold_sql": "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "raw_output": "SELECT AVG(T1.milliseconds) FROM lapTimes AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "predicted_sql": "SELECT AVG(T1.milliseconds) FROM lapTimes AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "generation_status": "ok", "prompt_tokens": 1360, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2184", "db_id": "formula_1", "question": "What are all the different first names of the drivers who are in position as standing and won?", "gold_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1", "raw_output": "SELECT DISTINCT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.wins > 0", "predicted_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.wins > 0", "generation_status": "ok", "prompt_tokens": 1360, "generated_tokens": 41, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2222", "db_id": "formula_1", "question": "What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?", "gold_sql": "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "raw_output": "SELECT MAX(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "predicted_sql": "SELECT MAX(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "generation_status": "ok", "prompt_tokens": 1360, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2158", "db_id": "formula_1", "question": "What are the names of all the races that occurred in the year 2017?", "gold_sql": "SELECT name FROM races WHERE YEAR = 2017", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year = 2017", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year = 2017", "generation_status": "ok", "prompt_tokens": 1360, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2176", "db_id": "formula_1", "question": "What are the names and years of all races that had a driver with the last name Lewis?", "gold_sql": "SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"", "raw_output": "SELECT T1.name, T2.year FROM races AS T1 INNER JOIN drivers AS T3 ON T1.circuitId = T3.circuitId WHERE T3.surname = 'Lewis'", "predicted_sql": "SELECT T1.name, T2.year FROM races AS T1 INNER JOIN drivers AS T3 ON T1.circuitId = T3.circuitId WHERE T3.surname = 'Lewis'", "generation_status": "ok", "prompt_tokens": 1360, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.year", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2183", "db_id": "formula_1", "question": "Find all the forenames of distinct drivers who was in position 1 as standing and won?", "gold_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1", "raw_output": "SELECT DISTINCT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 AND T2.wins > 0", "predicted_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 AND T2.wins > 0", "generation_status": "ok", "prompt_tokens": 1360, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2203", "db_id": "formula_1", "question": "What are the names of races held between 2009 and 2011?", "gold_sql": "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2009 AND T1.year <= 2011", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2009 AND T1.year <= 2011", "generation_status": "ok", "prompt_tokens": 1361, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2175", "db_id": "formula_1", "question": "Give me a list of names and years of races that had any driver whose forename is Lewis?", "gold_sql": "SELECT T2.name , T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"", "raw_output": "SELECT T1.name, T2.year FROM races AS T1 INNER JOIN drivers AS T3 ON T1.circuitId = T3.circuitId WHERE T3.forename = 'Lewis'", "predicted_sql": "SELECT T1.name, T2.year FROM races AS T1 INNER JOIN drivers AS T3 ON T1.circuitId = T3.circuitId WHERE T3.forename = 'Lewis'", "generation_status": "ok", "prompt_tokens": 1361, "generated_tokens": 44, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.year", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2204", "db_id": "formula_1", "question": "What are the names of all races held between 2009 and 2011?", "gold_sql": "SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2009 AND T1.year <= 2011", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2009 AND T1.year <= 2011", "generation_status": "ok", "prompt_tokens": 1362, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2159", "db_id": "formula_1", "question": "Find the distinct names of all races held between 2014 and 2017?", "gold_sql": "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017", "raw_output": "SELECT DISTINCT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2014 AND T1.year <= 2017", "predicted_sql": "SELECT DISTINCT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2014 AND T1.year <= 2017", "generation_status": "ok", "prompt_tokens": 1362, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2229", "db_id": "formula_1", "question": "Find the driver id and number of races of all drivers who have at most participated in 30 races?", "gold_sql": "SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30", "raw_output": "SELECT T1.driverId, COUNT(T2.raceId) FROM drivers AS T1 JOIN races AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING COUNT(T2.raceId) <= 30", "predicted_sql": "SELECT T1.driverId, COUNT(T2.raceId) FROM drivers AS T1 JOIN races AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING COUNT(T2.raceId) <= 30", "generation_status": "ok", "prompt_tokens": 1363, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.driverId", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2193", "db_id": "formula_1", "question": "What are the unique names of races that held after 2000 and the circuits were in Spain?", "gold_sql": "SELECT DISTINCT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2000", "raw_output": "SELECT DISTINCT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year > 2000 AND T2.country = 'Spain'", "predicted_sql": "SELECT DISTINCT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year > 2000 AND T2.country = 'Spain'", "generation_status": "ok", "prompt_tokens": 1363, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2160", "db_id": "formula_1", "question": "What are the unique names of all race held between 2014 and 2017?", "gold_sql": "SELECT DISTINCT name FROM races WHERE YEAR BETWEEN 2014 AND 2017", "raw_output": "SELECT DISTINCT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2014 AND T1.year <= 2017", "predicted_sql": "SELECT DISTINCT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.year >= 2014 AND T1.year <= 2017", "generation_status": "ok", "prompt_tokens": 1363, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2227", "db_id": "formula_1", "question": "Find the id, forename and number of races of all drivers who have at least participated in two races?", "gold_sql": "SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2", "raw_output": "SELECT T1.driverId, T1.forename, COUNT(DISTINCT T2.raceId) AS num_races FROM drivers AS T1 JOIN driverStandings AS T3 ON T1.driverId = T3.driverId JOIN races AS T2 ON T3.raceId = T2.raceId GROUP BY T1.driverId, T1.forename HAVING COUNT(DISTINCT T2.raceId) >= 2", "predicted_sql": "SELECT T1.driverId, T1.forename, COUNT(DISTINCT T2.raceId) AS num_races FROM drivers AS T1 JOIN driverStandings AS T3 ON T1.driverId = T3.driverId JOIN races AS T2 ON T3.raceId = T2.raceId GROUP BY T1.driverId, T1.forename HAVING COUNT(DISTINCT T2.raceId) >= 2", "generation_status": "ok", "prompt_tokens": 1363, "generated_tokens": 97, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2219", "db_id": "formula_1", "question": "What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?", "gold_sql": "SELECT avg(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "raw_output": "SELECT AVG(T1.milliseconds) FROM lapTimes AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "predicted_sql": "SELECT AVG(T1.milliseconds) FROM lapTimes AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "generation_status": "ok", "prompt_tokens": 1364, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2212", "db_id": "formula_1", "question": "What is the id and last name of the driver who participated in the most races after 2010?", "gold_sql": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.year > 2010 GROUP BY T1.driverId, T1.surname ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "predicted_sql": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.year > 2010 GROUP BY T1.driverId, T1.surname ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1364, "generated_tokens": 90, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2221", "db_id": "formula_1", "question": "What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?", "gold_sql": "SELECT max(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "raw_output": "SELECT MAX(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "predicted_sql": "SELECT MAX(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId INNER JOIN circuits AS T3 ON T2.circuitId = T3.circuitId WHERE T2.name = 'Monaco Grand Prix' AND T2.year = 2008", "generation_status": "ok", "prompt_tokens": 1364, "generated_tokens": 76, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2211", "db_id": "formula_1", "question": "What is the id and last name of the driver who participated in the most races after 2010?", "gold_sql": "SELECT T1.driverid , T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.year > 2010 GROUP BY T1.driverId, T1.surname ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "predicted_sql": "SELECT T1.driverId, T1.surname FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.year > 2010 GROUP BY T1.driverId, T1.surname ORDER BY COUNT(T2.raceId) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1364, "generated_tokens": 90, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2230", "db_id": "formula_1", "question": "For each id of a driver who participated in at most 30 races, how many races did they participate in?", "gold_sql": "SELECT T1.driverid , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) <= 30", "raw_output": "SELECT T1.driverId, COUNT(T2.raceId) FROM drivers AS T1 JOIN races AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING COUNT(T2.raceId) <= 30", "predicted_sql": "SELECT T1.driverId, COUNT(T2.raceId) FROM drivers AS T1 JOIN races AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING COUNT(T2.raceId) <= 30", "generation_status": "ok", "prompt_tokens": 1365, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.driverId", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2224", "db_id": "formula_1", "question": "For each race name, What is the maximum fastest lap speed for races after 2004 ordered by year?", "gold_sql": "SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "raw_output": "SELECT T1.name, MAX(T3.fastestLapSpeed) FROM races AS T1 JOIN lapTimes AS T2 ON T1.raceId = T2.raceId JOIN results AS T3 ON T2.raceId = T3.raceId WHERE T1.year > 2004 GROUP BY T1.name", "predicted_sql": "SELECT T1.name, MAX(T3.fastestLapSpeed) FROM races AS T1 JOIN lapTimes AS T2 ON T1.raceId = T2.raceId JOIN results AS T3 ON T2.raceId = T3.raceId WHERE T1.year > 2004 GROUP BY T1.name", "generation_status": "ok", "prompt_tokens": 1365, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2180", "db_id": "formula_1", "question": "What is the id and first name of all the drivers who participated in the Australian Grand Prix and the Chinese Grand Prix?", "gold_sql": "SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "raw_output": "SELECT T1.driverId, T1.forename FROM drivers AS T1 JOIN results AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' OR T3.name = 'Chinese Grand Prix'", "predicted_sql": "SELECT T1.driverId, T1.forename FROM drivers AS T1 JOIN results AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' OR T3.name = 'Chinese Grand Prix'", "generation_status": "ok", "prompt_tokens": 1365, "generated_tokens": 74, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2182", "db_id": "formula_1", "question": "What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?", "gold_sql": "SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "raw_output": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T1.driverId NOT IN (SELECT T1_sub.driverId FROM drivers AS T1_sub INNER JOIN results AS T2_sub ON T1_sub.driverId = T2_sub.driverId INNER JOIN races AS T3_sub ON T2_sub.raceId = T3_sub.raceId WHERE T3_sub.name = 'Chinese Grand Prix')", "predicted_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T1.driverId NOT IN (SELECT T1_sub.driverId FROM drivers AS T1_sub INNER JOIN results AS T2_sub ON T1_sub.driverId = T2_sub.driverId INNER JOIN races AS T3_sub ON T2_sub.raceId = T3_sub.raceId WHERE T3_sub.name = 'Chinese Grand Prix')", "generation_status": "ok", "prompt_tokens": 1365, "generated_tokens": 149, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2163", "db_id": "formula_1", "question": "Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?", "gold_sql": "SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000", "raw_output": "SELECT DISTINCT T1.driverId, T1.nationality FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.milliseconds > 100000", "predicted_sql": "SELECT DISTINCT T1.driverId, T1.nationality FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.milliseconds > 100000", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2228", "db_id": "formula_1", "question": "What is the id, forename, and number of races for all drivers that have participated in at least 2 races?", "gold_sql": "SELECT T1.driverid , T1.forename , count(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING count(*) >= 2", "raw_output": "SELECT T1.driverId, T1.forename, T1.number FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId, T1.forename, T1.number HAVING count(T2.raceId) >= 2", "predicted_sql": "SELECT T1.driverId, T1.forename, T1.number FROM drivers AS T1 JOIN driverStandings AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId, T1.forename, T1.number HAVING count(T2.raceId) >= 2", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2225", "db_id": "formula_1", "question": "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?", "gold_sql": "SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "raw_output": "SELECT AVG(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.year > 2004 GROUP BY T2.name ORDER BY T2.year", "predicted_sql": "SELECT AVG(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.year > 2004 GROUP BY T2.name ORDER BY T2.year", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2191", "db_id": "formula_1", "question": "What are the names of races that were held after 2017 and the circuits were in the country of Spain?", "gold_sql": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017", "raw_output": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.date > '2017' AND T2.country = 'Spain'", "predicted_sql": "SELECT T1.name FROM races AS T1 INNER JOIN circuits AS T2 ON T1.circuitId = T2.circuitId WHERE T1.date > '2017' AND T2.country = 'Spain'", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2223", "db_id": "formula_1", "question": "What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?", "gold_sql": "SELECT max(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "raw_output": "SELECT MAX(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.year > 2004 GROUP BY T2.name ORDER BY T2.year", "predicted_sql": "SELECT MAX(T1.fastestLapSpeed) FROM results AS T1 INNER JOIN races AS T2 ON T1.raceId = T2.raceId WHERE T2.year > 2004 GROUP BY T2.name ORDER BY T2.year", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 58, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2226", "db_id": "formula_1", "question": "What is the average fastest lap speed for races held after 2004, for each race, ordered by year?", "gold_sql": "SELECT avg(T2.fastestlapspeed) , T1.name , T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "raw_output": "SELECT T1.year, AVG(T2.fastestLapSpeed) FROM seasons AS T1 JOIN races AS T3 ON T1.year = T3.year JOIN lapTimes AS T2 ON T3.circuitId = T2.raceId WHERE T1.year > 2004 GROUP BY T1.year", "predicted_sql": "SELECT T1.year, AVG(T2.fastestLapSpeed) FROM seasons AS T1 JOIN races AS T3 ON T1.year = T3.year JOIN lapTimes AS T2 ON T3.circuitId = T2.raceId WHERE T1.year > 2004 GROUP BY T1.year", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.fastestLapSpeed", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:2161", "db_id": "formula_1", "question": "List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?", "gold_sql": "SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000", "raw_output": "SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.time < '93000';", "predicted_sql": "SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.time < '93000';", "generation_status": "ok", "prompt_tokens": 1366, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2169", "db_id": "formula_1", "question": "What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?", "gold_sql": "SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2", "raw_output": "SELECT T1.driverId, T1.forename, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 GROUP BY T1.driverId HAVING COUNT(T2.lap) >= 2", "predicted_sql": "SELECT T1.driverId, T1.forename, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 GROUP BY T1.driverId HAVING COUNT(T2.lap) >= 2", "generation_status": "ok", "prompt_tokens": 1367, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2210", "db_id": "formula_1", "question": "What are the last names and ids of all drivers who had 11 pit stops and participated in more than 5 races?", "gold_sql": "SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "raw_output": "SELECT T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING COUNT(DISTINCT T2.raceId) > 5 AND COUNT(DISTINCT T2.driverId) = 11", "predicted_sql": "SELECT T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING COUNT(DISTINCT T2.raceId) > 5 AND COUNT(DISTINCT T2.driverId) = 11", "generation_status": "ok", "prompt_tokens": 1367, "generated_tokens": 72, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2209", "db_id": "formula_1", "question": "What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?", "gold_sql": "SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) = 11 INTERSECT SELECT T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "raw_output": "SELECT T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId JOIN results AS T3 ON T1.driverId = T3.driverId GROUP BY T1.driverId, T1.surname HAVING COUNT(T2.stop) = 11 AND COUNT(T3.resultId) > 5", "predicted_sql": "SELECT T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId JOIN results AS T3 ON T1.driverId = T3.driverId GROUP BY T1.driverId, T1.surname HAVING COUNT(T2.stop) = 11 AND COUNT(T3.resultId) > 5", "generation_status": "ok", "prompt_tokens": 1367, "generated_tokens": 89, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2185", "db_id": "formula_1", "question": "Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?", "gold_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20", "raw_output": "SELECT DISTINCT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 AND T2.points > 20", "predicted_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 AND T2.points > 20", "generation_status": "ok", "prompt_tokens": 1367, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2186", "db_id": "formula_1", "question": "What are the first names of the different drivers who won in position 1 as driver standing and had more than 20 points?", "gold_sql": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20", "raw_output": "SELECT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 AND T2.points > 20", "predicted_sql": "SELECT T1.forename FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 AND T2.points > 20", "generation_status": "ok", "prompt_tokens": 1368, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2181", "db_id": "formula_1", "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?", "gold_sql": "SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename , T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "raw_output": "SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.name NOT IN (SELECT name FROM races WHERE name = 'Chinese Grand Prix')", "predicted_sql": "SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverId = T2.driverId JOIN races AS T3 ON T2.raceId = T3.raceId WHERE T3.name = 'Australian Grand Prix' AND T3.name NOT IN (SELECT name FROM races WHERE name = 'Chinese Grand Prix')", "generation_status": "ok", "prompt_tokens": 1368, "generated_tokens": 82, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2170", "db_id": "formula_1", "question": "What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?", "gold_sql": "SELECT T1.driverid , T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING count(*) >= 2", "raw_output": "SELECT T1.driverId, T1.forename, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 GROUP BY T1.driverId HAVING count(*) >= 2", "predicted_sql": "SELECT T1.driverId, T1.forename, T1.surname FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.position = 1 GROUP BY T1.driverId HAVING count(*) >= 2", "generation_status": "ok", "prompt_tokens": 1368, "generated_tokens": 62, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2179", "db_id": "formula_1", "question": "Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?", "gold_sql": "SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid , T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "raw_output": "SELECT T1.driverId, T2.forename FROM drivers AS T1 INNER JOIN results AS T3 ON T1.driverId = T3.driverId INNER JOIN races AS T4 ON T3.raceId = T4.raceId WHERE T4.name = 'Australian Grand Prix' AND T3.driverId IN (SELECT T2.driverId FROM results AS T3 INNER JOIN races AS T4 ON T3.raceId = T4.raceId WHERE T4.name = 'Chinese Grand Prix') GROUP BY T1.driverId, T2.forename", "predicted_sql": "SELECT T1.driverId, T2.forename FROM drivers AS T1 INNER JOIN results AS T3 ON T1.driverId = T3.driverId INNER JOIN races AS T4 ON T3.raceId = T4.raceId WHERE T4.name = 'Australian Grand Prix' AND T3.driverId IN (SELECT T2.driverId FROM results AS T3 INNER JOIN races AS T4 ON T3.raceId = T4.raceId WHERE T4.name = 'Chinese Grand Prix') GROUP BY T1.driverId, T2.forename", "generation_status": "ok", "prompt_tokens": 1368, "generated_tokens": 126, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.forename", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2162", "db_id": "formula_1", "question": "What are the forenames and surnames of all unique drivers who had a lap time of less than 93000 milliseconds?", "gold_sql": "SELECT DISTINCT T1.forename , T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000", "raw_output": "SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.time < '93000';", "predicted_sql": "SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.time < '93000';", "generation_status": "ok", "prompt_tokens": 1368, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2197", "db_id": "formula_1", "question": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?", "gold_sql": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)", "raw_output": "SELECT DISTINCT T1.driverId FROM pitStops AS T1 JOIN pitStops AS T2 ON T1.raceId = T2.raceId WHERE T2.raceId = 841 AND T1.duration > T2.duration", "predicted_sql": "SELECT DISTINCT T1.driverId FROM pitStops AS T1 JOIN pitStops AS T2 ON T1.raceId = T2.raceId WHERE T2.raceId = 841 AND T1.duration > T2.duration", "generation_status": "ok", "prompt_tokens": 1369, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2164", "db_id": "formula_1", "question": "What are the different driver ids and nationalities of all drivers who had a laptime of more than 100000 milliseconds?", "gold_sql": "SELECT DISTINCT T1.driverid , T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000", "raw_output": "SELECT DISTINCT T1.driverId, T1.nationality FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.milliseconds > 100000", "predicted_sql": "SELECT DISTINCT T1.driverId, T1.nationality FROM drivers AS T1 JOIN lapTimes AS T2 ON T1.driverId = T2.driverId WHERE T2.milliseconds > 100000", "generation_status": "ok", "prompt_tokens": 1369, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2205", "db_id": "formula_1", "question": "What are the names of races held after 12:00:00 or before 09:00:00?", "gold_sql": "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"", "raw_output": "SELECT T1.name FROM races AS T1 WHERE T1.date > '12:00:00' OR T1.date < '09:00:00'", "predicted_sql": "SELECT T1.name FROM races AS T1 WHERE T1.date > '12:00:00' OR T1.date < '09:00:00'", "generation_status": "ok", "prompt_tokens": 1370, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2207", "db_id": "formula_1", "question": "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?", "gold_sql": "SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "raw_output": "SELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING count(T2.stop) > 8\nUNION\nSELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN results AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING count(T2.resultId) > 5", "predicted_sql": "SELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING count(T2.stop) > 8\nUNION\nSELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN results AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING count(T2.resultId) > 5", "generation_status": "ok", "prompt_tokens": 1370, "generated_tokens": 121, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2196", "db_id": "formula_1", "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "gold_sql": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)", "raw_output": "SELECT T1.driverId, T1.stop FROM pitStops AS T1 INNER JOIN pitStops AS T2 ON T1.raceId = T2.raceId WHERE T2.raceId = 841 AND T1.duration < T2.duration", "predicted_sql": "SELECT T1.driverId, T1.stop FROM pitStops AS T1 INNER JOIN pitStops AS T2 ON T1.raceId = T2.raceId WHERE T2.raceId = 841 AND T1.duration < T2.duration", "generation_status": "ok", "prompt_tokens": 1370, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2198", "db_id": "formula_1", "question": "What are the different ids and stop durations of all the drivers whose stop lasted longer than the driver in the race with the id 841?", "gold_sql": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration > (SELECT min(duration) FROM pitstops WHERE raceid = 841)", "raw_output": "SELECT T1.stop, T2.duration FROM pitStops AS T1 INNER JOIN pitStops AS T2 ON T1.raceId = T2.raceId WHERE T1.raceId = 841 AND T1.duration > T2.duration", "predicted_sql": "SELECT T1.stop, T2.duration FROM pitStops AS T1 INNER JOIN pitStops AS T2 ON T1.raceId = T2.raceId WHERE T1.raceId = 841 AND T1.duration > T2.duration", "generation_status": "ok", "prompt_tokens": 1371, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2206", "db_id": "formula_1", "question": "What are the names of all races that occurred after 12:00:00 or before 09:00:00?", "gold_sql": "SELECT name FROM races WHERE TIME > \"12:00:00\" OR TIME < \"09:00:00\"", "raw_output": "SELECT T1.name FROM races AS T1 WHERE T1.date > '12:00:00' OR T1.date < '09:00:00'", "predicted_sql": "SELECT T1.name FROM races AS T1 WHERE T1.date > '12:00:00' OR T1.date < '09:00:00'", "generation_status": "ok", "prompt_tokens": 1372, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:2195", "db_id": "formula_1", "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.", "gold_sql": "SELECT DISTINCT driverid , STOP FROM pitstops WHERE duration < (SELECT max(duration) FROM pitstops WHERE raceid = 841)", "raw_output": "SELECT DISTINCT T1.driverId, T1.stop\nFROM pitStops AS T1\nWHERE T1.raceId = 841 AND T1.duration < (SELECT MAX(T2.duration) FROM pitStops AS T2 WHERE T2.raceId = 841)", "predicted_sql": "SELECT DISTINCT T1.driverId, T1.stop\nFROM pitStops AS T1\nWHERE T1.raceId = 841 AND T1.duration < (SELECT MAX(T2.duration) FROM pitStops AS T2 WHERE T2.raceId = 841)", "generation_status": "ok", "prompt_tokens": 1373, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:2208", "db_id": "formula_1", "question": "What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?", "gold_sql": "SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 8 UNION SELECT T1.forename , T1.surname , T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING count(*) > 5", "raw_output": "SELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING sum(T2.stop) > 8\nUNION\nSELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN races AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING count(DISTINCT T2.raceId) > 5", "predicted_sql": "SELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN pitStops AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING sum(T2.stop) > 8\nUNION\nSELECT T1.forename, T1.surname, T1.driverId FROM drivers AS T1 JOIN races AS T2 ON T1.driverId = T2.driverId GROUP BY T1.driverId HAVING count(DISTINCT T2.raceId) > 5", "generation_status": "ok", "prompt_tokens": 1373, "generated_tokens": 123, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.driverId", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5097", "db_id": "cre_Drama_Workshop_Groups", "question": "Count the number of customers recorded.", "gold_sql": "SELECT count(*) FROM CUSTOMERS", "raw_output": "SELECT count(*) FROM Customers", "predicted_sql": "SELECT count(*) FROM Customers", "generation_status": "ok", "prompt_tokens": 1939, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5090", "db_id": "cre_Drama_Workshop_Groups", "question": "How many bookings do we have?", "gold_sql": "SELECT count(*) FROM BOOKINGS", "raw_output": "SELECT count(*) FROM Bookings", "predicted_sql": "SELECT count(*) FROM Bookings", "generation_status": "ok", "prompt_tokens": 1939, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5096", "db_id": "cre_Drama_Workshop_Groups", "question": "How many customers do we have?", "gold_sql": "SELECT count(*) FROM CUSTOMERS", "raw_output": "SELECT count(*) FROM Customers", "predicted_sql": "SELECT count(*) FROM Customers", "generation_status": "ok", "prompt_tokens": 1939, "generated_tokens": 6, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5107", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the marketing region description of China?", "gold_sql": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = \"China\"", "raw_output": "SELECT T1.Marketing_Region_Descriptrion FROM Marketing_Regions AS T1 WHERE T1.Marketing_Region_Name = 'China'", "predicted_sql": "SELECT T1.Marketing_Region_Descriptrion FROM Marketing_Regions AS T1 WHERE T1.Marketing_Region_Name = 'China'", "generation_status": "ok", "prompt_tokens": 1940, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5091", "db_id": "cre_Drama_Workshop_Groups", "question": "Count the total number of bookings made.", "gold_sql": "SELECT count(*) FROM BOOKINGS", "raw_output": "SELECT count(*) FROM Bookings", "predicted_sql": "SELECT count(*) FROM Bookings", "generation_status": "ok", "prompt_tokens": 1940, "generated_tokens": 7, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5160", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the most frequent status of bookings?", "gold_sql": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Status_Code, COUNT(*) AS frequency\nFROM Bookings\nGROUP BY Status_Code\nORDER BY frequency DESC\nLIMIT 1", "predicted_sql": "SELECT Status_Code, COUNT(*) AS frequency\nFROM Bookings\nGROUP BY Status_Code\nORDER BY frequency DESC\nLIMIT 1", "generation_status": "ok", "prompt_tokens": 1941, "generated_tokens": 29, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:5092", "db_id": "cre_Drama_Workshop_Groups", "question": "List the order dates of all the bookings.", "gold_sql": "SELECT Order_Date FROM BOOKINGS", "raw_output": "SELECT Order_Date FROM Bookings", "predicted_sql": "SELECT Order_Date FROM Bookings", "generation_status": "ok", "prompt_tokens": 1941, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5115", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the phone number of performer \"Ashley\".", "gold_sql": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"", "raw_output": "SELECT T1.Customer_Phone FROM Performers AS T1 WHERE T1.Customer_Name = 'Ashley'", "predicted_sql": "SELECT T1.Customer_Phone FROM Performers AS T1 WHERE T1.Customer_Name = 'Ashley'", "generation_status": "ok", "prompt_tokens": 1941, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5093", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the order date of each booking?", "gold_sql": "SELECT Order_Date FROM BOOKINGS", "raw_output": "SELECT Order_Date FROM Bookings", "predicted_sql": "SELECT Order_Date FROM Bookings", "generation_status": "ok", "prompt_tokens": 1941, "generated_tokens": 8, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5098", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the phone and email for customer Harold?", "gold_sql": "SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = \"Harold\"", "raw_output": "SELECT T1.Customer_Phone, T1.Customer_Email_Address FROM Customers AS T1 WHERE T1.Customer_Name = 'Harold'", "predicted_sql": "SELECT T1.Customer_Phone, T1.Customer_Email_Address FROM Customers AS T1 WHERE T1.Customer_Name = 'Harold'", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5112", "db_id": "cre_Drama_Workshop_Groups", "question": "List all product names in ascending order of price.", "gold_sql": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "raw_output": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "predicted_sql": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5140", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the total order quantities of photo products?", "gold_sql": "SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = \"photo\"", "raw_output": "SELECT SUM(T1.Order_Quantity) FROM Invoices AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Invoice_ID = T2.Invoice_ID INNER JOIN Products AS T3 ON T2.Product_ID = T3 WHERE T3.Product_Name LIKE '%photo%';", "predicted_sql": "SELECT SUM(T1.Order_Quantity) FROM Invoices AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Invoice_ID = T2.Invoice_ID INNER JOIN Products AS T3 ON T2.Product_ID = T3 WHERE T3.Product_Name LIKE '%photo%';", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T3", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5110", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the name of the most expensive product?", "gold_sql": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1", "raw_output": "SELECT T1.Product_Name FROM Products AS T1 ORDER BY T1.Product_Price DESC LIMIT 1", "predicted_sql": "SELECT T1.Product_Name FROM Products AS T1 ORDER BY T1.Product_Price DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5106", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the description of the marketing region China?", "gold_sql": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = \"China\"", "raw_output": "SELECT T1.Marketing_Region_Descriptrion FROM Marketing_Regions AS T1 WHERE T1.Marketing_Region_Name = 'China'", "predicted_sql": "SELECT T1.Marketing_Region_Descriptrion FROM Marketing_Regions AS T1 WHERE T1.Marketing_Region_Name = 'China'", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 32, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5114", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the phone number of the performer Ashley?", "gold_sql": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"", "raw_output": "SELECT T1.Customer_Phone FROM Performers AS T1 WHERE T1.Customer_Name = 'Ashley'", "predicted_sql": "SELECT T1.Customer_Phone FROM Performers AS T1 WHERE T1.Customer_Name = 'Ashley'", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5101", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the store names of drama workshop groups?", "gold_sql": "SELECT Store_Name FROM Drama_Workshop_Groups", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1", "generation_status": "ok", "prompt_tokens": 1942, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5164", "db_id": "cre_Drama_Workshop_Groups", "question": "Show the names of all the clients with no booking.", "gold_sql": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID", "raw_output": "SELECT T1.Customer_Name FROM Clients AS T1 LEFT JOIN Bookings AS T2 ON T1.Client_ID = T2.Customer_ID WHERE T2.Booking_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Name FROM Clients AS T1 LEFT JOIN Bookings AS T2 ON T1.Client_ID = T2.Customer_ID WHERE T2.Booking_ID IS NULL", "generation_status": "ok", "prompt_tokens": 1943, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5111", "db_id": "cre_Drama_Workshop_Groups", "question": "Tell me the name of the most pricy product.", "gold_sql": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1", "raw_output": "SELECT T1.Product_Name FROM Products AS T1 ORDER BY T1.Product_Price DESC LIMIT 1", "predicted_sql": "SELECT T1.Product_Name FROM Products AS T1 ORDER BY T1.Product_Price DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1943, "generated_tokens": 25, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5141", "db_id": "cre_Drama_Workshop_Groups", "question": "Compute the total order quantities of the product \"photo\".", "gold_sql": "SELECT sum(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = \"photo\"", "raw_output": "SELECT SUM(T1.Order_Quantity) FROM Invoice_Items AS T1 INNER JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = 'photo'", "predicted_sql": "SELECT SUM(T1.Order_Quantity) FROM Invoice_Items AS T1 INNER JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = 'photo'", "generation_status": "ok", "prompt_tokens": 1943, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5159", "db_id": "cre_Drama_Workshop_Groups", "question": "Which cities have at least one customer but no performer?", "gold_sql": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID", "raw_output": "SELECT T1.City_Town FROM Addresses AS T1 INNER JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID LEFT JOIN Performers AS T3 ON T2.Customer_ID = T3.Performer_ID WHERE T1.City_Town IS NOT NULL AND T3.Performer_ID IS NULL GROUP BY T1.City_Town HAVING COUNT(T2.Customer_ID) > 0", "predicted_sql": "SELECT T1.City_Town FROM Addresses AS T1 INNER JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID LEFT JOIN Performers AS T3 ON T2.Customer_ID = T3.Performer_ID WHERE T1.City_Town IS NOT NULL AND T3.Performer_ID IS NULL GROUP BY T1.City_Town HAVING COUNT(T2.Customer_ID) > 0", "generation_status": "ok", "prompt_tokens": 1943, "generated_tokens": 96, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5100", "db_id": "cre_Drama_Workshop_Groups", "question": "Show all the Store_Name of drama workshop groups.", "gold_sql": "SELECT Store_Name FROM Drama_Workshop_Groups", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1", "generation_status": "ok", "prompt_tokens": 1943, "generated_tokens": 17, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5137", "db_id": "cre_Drama_Workshop_Groups", "question": "For each distinct product name, show its average product price.", "gold_sql": "SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name", "raw_output": "SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name", "predicted_sql": "SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5117", "db_id": "cre_Drama_Workshop_Groups", "question": "List the distinct payment method codes with the number of orders made", "gold_sql": "SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code", "raw_output": "SELECT T1.payment_method_code, count(T2.Order_ID) FROM Ref_Payment_Methods AS T1 JOIN Invoices AS T2 ON T1.payment_method_code = T2.payment_method_code GROUP BY T1.payment_method_code", "predicted_sql": "SELECT T1.payment_method_code, count(T2.Order_ID) FROM Ref_Payment_Methods AS T1 JOIN Invoices AS T2 ON T1.payment_method_code = T2.payment_method_code GROUP BY T1.payment_method_code", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5118", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the payment method code used by the most orders?", "gold_sql": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT T1.payment_method_code FROM Invoices AS T1 GROUP BY T1.payment_method_code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT T1.payment_method_code FROM Invoices AS T1 GROUP BY T1.payment_method_code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 34, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5105", "db_id": "cre_Drama_Workshop_Groups", "question": "Show me the distinct payment method codes from the invoice record.", "gold_sql": "SELECT DISTINCT payment_method_code FROM INVOICES", "raw_output": "SELECT DISTINCT payment_method_code FROM Invoices", "predicted_sql": "SELECT DISTINCT payment_method_code FROM Invoices", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5099", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the phone number and email address of customer \"Harold\".", "gold_sql": "SELECT Customer_Phone , Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = \"Harold\"", "raw_output": "SELECT T1.Customer_Phone, T1.Customer_Email_Address FROM Customers AS T1 WHERE T1.Customer_Name = 'Harold'", "predicted_sql": "SELECT T1.Customer_Phone, T1.Customer_Email_Address FROM Customers AS T1 WHERE T1.Customer_Name = 'Harold'", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5113", "db_id": "cre_Drama_Workshop_Groups", "question": "Sort the names of products in ascending order of their price.", "gold_sql": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "raw_output": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "predicted_sql": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 13, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5104", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the distinct payment method codes in all the invoices?", "gold_sql": "SELECT DISTINCT payment_method_code FROM INVOICES", "raw_output": "SELECT DISTINCT payment_method_code FROM Invoices", "predicted_sql": "SELECT DISTINCT payment_method_code FROM Invoices", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 11, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5161", "db_id": "cre_Drama_Workshop_Groups", "question": "Which status code is the most common of all the bookings?", "gold_sql": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Status_Code FROM Bookings GROUP BY Status_Code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Status_Code FROM Bookings GROUP BY Status_Code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1944, "generated_tokens": 21, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5149", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the number of distinct currency codes used in drama workshop groups.", "gold_sql": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "raw_output": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "predicted_sql": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5169", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the id of the product ordered the most often on invoices.", "gold_sql": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T1.Product_ID FROM Invoices AS T1 GROUP BY T1.Product_ID ORDER BY COUNT(T1.Product_ID) DESC LIMIT 1", "predicted_sql": "SELECT T1.Product_ID FROM Invoices AS T1 GROUP BY T1.Product_ID ORDER BY COUNT(T1.Product_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 37, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5144", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the actual delivery dates of orders with quantity 1?", "gold_sql": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1", "raw_output": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 WHERE T1.Order_Quantity = '1'", "predicted_sql": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 WHERE T1.Order_Quantity = '1'", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.Order_Quantity", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5094", "db_id": "cre_Drama_Workshop_Groups", "question": "Show all the planned delivery dates and actual delivery dates of bookings.", "gold_sql": "SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS", "raw_output": "SELECT Planned_Delivery_Date, Actual_Delivery_Date FROM Bookings", "predicted_sql": "SELECT Planned_Delivery_Date, Actual_Delivery_Date FROM Bookings", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5145", "db_id": "cre_Drama_Workshop_Groups", "question": "List the actual delivery date for all the orders with quantity 1", "gold_sql": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1", "raw_output": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 WHERE T1.Order_Quantity = 1", "predicted_sql": "SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 WHERE T1.Order_Quantity = 1", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 27, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.Order_Quantity", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5148", "db_id": "cre_Drama_Workshop_Groups", "question": "How many distinct currency codes are there for all drama workshop groups?", "gold_sql": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "raw_output": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "predicted_sql": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5108", "db_id": "cre_Drama_Workshop_Groups", "question": "Show all the distinct product names with price higher than the average.", "gold_sql": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS)", "raw_output": "SELECT T1.Product_Name FROM Products AS T1 GROUP BY T1.Product_Name HAVING AVG(T1.Product_Price) < T1.Product_Price", "predicted_sql": "SELECT T1.Product_Name FROM Products AS T1 GROUP BY T1.Product_Name HAVING AVG(T1.Product_Price) < T1.Product_Price", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 38, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5102", "db_id": "cre_Drama_Workshop_Groups", "question": "Show the minimum, average, maximum order quantity of all invoices.", "gold_sql": "SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES", "raw_output": "SELECT MIN(T1.Order_Quantity), AVG(T1.Order_Quantity), MAX(T1.Order_Quantity) FROM Invoices AS T1", "predicted_sql": "SELECT MIN(T1.Order_Quantity), AVG(T1.Order_Quantity), MAX(T1.Order_Quantity) FROM Invoices AS T1", "generation_status": "ok", "prompt_tokens": 1945, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5168", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the product ID of the most frequently ordered item on invoices?", "gold_sql": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T1.Product_ID FROM Invoices AS T1 JOIN Invoice_Items AS T2 ON T1.Invoice_ID = T2.Invoice_ID GROUP BY T1.Product_ID ORDER BY COUNT(T2.Invoice_Item_ID) DESC LIMIT 1", "predicted_sql": "SELECT T1.Product_ID FROM Invoices AS T1 JOIN Invoice_Items AS T2 ON T1.Invoice_ID = T2.Invoice_ID GROUP BY T1.Product_ID ORDER BY COUNT(T2.Invoice_Item_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1946, "generated_tokens": 60, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:5095", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the planned delivery date and actual delivery date for each booking?", "gold_sql": "SELECT Planned_Delivery_Date , Actual_Delivery_Date FROM BOOKINGS", "raw_output": "SELECT Planned_Delivery_Date, Actual_Delivery_Date FROM Bookings", "predicted_sql": "SELECT Planned_Delivery_Date, Actual_Delivery_Date FROM Bookings", "generation_status": "ok", "prompt_tokens": 1946, "generated_tokens": 16, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5116", "db_id": "cre_Drama_Workshop_Groups", "question": "Show all payment method codes and the number of orders for each code.", "gold_sql": "SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code", "raw_output": "SELECT T1.payment_method_code, count(T2.Invoice_ID) FROM Ref_Payment_Methods AS T1 JOIN Invoices AS T2 ON T1.payment_method_code = T2.payment_method_code GROUP BY T1.payment_method_code", "predicted_sql": "SELECT T1.payment_method_code, count(T2.Invoice_ID) FROM Ref_Payment_Methods AS T1 JOIN Invoices AS T2 ON T1.payment_method_code = T2.payment_method_code GROUP BY T1.payment_method_code", "generation_status": "ok", "prompt_tokens": 1946, "generated_tokens": 63, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5153", "db_id": "cre_Drama_Workshop_Groups", "question": "List the email addresses of the drama workshop groups located in Alaska state.", "gold_sql": "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = \"Alaska\"", "raw_output": "SELECT T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.State_County = 'Alaska'", "predicted_sql": "SELECT T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.State_County = 'Alaska'", "generation_status": "ok", "prompt_tokens": 1946, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5165", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the names of the clients who do not have any booking?", "gold_sql": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID", "raw_output": "SELECT T1.Customer_Name FROM Clients AS T1 LEFT JOIN Bookings AS T2 ON T1.Client_ID = T2.Customer_ID WHERE T2.Booking_ID IS NULL", "predicted_sql": "SELECT T1.Customer_Name FROM Clients AS T1 LEFT JOIN Bookings AS T2 ON T1.Client_ID = T2.Customer_ID WHERE T2.Booking_ID IS NULL", "generation_status": "ok", "prompt_tokens": 1946, "generated_tokens": 43, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5156", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the marketing region code that has the most drama workshop groups?", "gold_sql": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1946, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5154", "db_id": "cre_Drama_Workshop_Groups", "question": "Show all cities along with the number of drama workshop groups in each city.", "gold_sql": "SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "raw_output": "SELECT T1.City_Town, count(T2.Workshop_Group_ID) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "predicted_sql": "SELECT T1.City_Town, count(T2.Workshop_Group_ID) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "generation_status": "ok", "prompt_tokens": 1947, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5109", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the distinct names of the products that cost more than the average?", "gold_sql": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS)", "raw_output": "SELECT DISTINCT T1.Product_Name FROM Products AS T1 WHERE T1.Product_Price > (SELECT AVG(Product_Price) FROM Products)", "predicted_sql": "SELECT DISTINCT T1.Product_Name FROM Products AS T1 WHERE T1.Product_Price > (SELECT AVG(Product_Price) FROM Products)", "generation_status": "ok", "prompt_tokens": 1947, "generated_tokens": 33, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5129", "db_id": "cre_Drama_Workshop_Groups", "question": "List the description, code and the number of services for each service type.", "gold_sql": "SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code", "raw_output": "SELECT T2.Service_Type_Description, T1.Service_Type_Code, count(T3.Service_ID) AS number_of_services FROM Ref_Service_Types AS T1 JOIN Services AS T3 ON T1.Service_Type_Code = T3.Service_Type_Code GROUP BY T1.Service_Type_Code, T1.Service_Type_Description", "predicted_sql": "SELECT T2.Service_Type_Description, T1.Service_Type_Code, count(T3.Service_ID) AS number_of_services FROM Ref_Service_Types AS T1 JOIN Services AS T3 ON T1.Service_Type_Code = T3.Service_Type_Code GROUP BY T1.Service_Type_Code, T1.Service_Type_Description", "generation_status": "ok", "prompt_tokens": 1947, "generated_tokens": 86, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T2.Service_Type_Description", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5121", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the city the store named \"FJA Filming\" is in.", "gold_sql": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = \"FJA Filming\"", "raw_output": "SELECT T1.City_Town FROM Addresses AS T1 INNER JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = 'FJA Filming'", "predicted_sql": "SELECT T1.City_Town FROM Addresses AS T1 INNER JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = 'FJA Filming'", "generation_status": "ok", "prompt_tokens": 1947, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5128", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the description, code and the corresponding count of each service type?", "gold_sql": "SELECT T1.Service_Type_Description , T2.Service_Type_Code , COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code", "raw_output": "SELECT T1.Service_Type_Description, T1.Service_Type_Code, count(*) FROM Ref_Service_Types AS T1 GROUP BY T1.Service_Type_Description, T1.Service_Type_Code", "predicted_sql": "SELECT T1.Service_Type_Description, T1.Service_Type_Code, count(*) FROM Ref_Service_Types AS T1 GROUP BY T1.Service_Type_Description, T1.Service_Type_Code", "generation_status": "ok", "prompt_tokens": 1947, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5132", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the phones and emails of workshop groups in which services are performed?", "gold_sql": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "raw_output": "SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "predicted_sql": "SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "generation_status": "ok", "prompt_tokens": 1947, "generated_tokens": 49, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5158", "db_id": "cre_Drama_Workshop_Groups", "question": "Show all cities where at least one customer lives in but no performer lives in.", "gold_sql": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID", "raw_output": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID LEFT JOIN Performers AS T3 ON T1.Address_ID = T3.Address_ID WHERE T2.Customer_ID IS NOT NULL AND T3.Performer_ID IS NULL GROUP BY T1.City_Town", "predicted_sql": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID LEFT JOIN Performers AS T3 ON T1.Address_ID = T3.Address_ID WHERE T2.Customer_ID IS NOT NULL AND T3.Performer_ID IS NULL GROUP BY T1.City_Town", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 81, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5147", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the order dates of the orders with price above 1000.", "gold_sql": "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000", "raw_output": "SELECT T1.Order_Date FROM Customer_Orders AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Order_ID = T2.Order_ID INNER JOIN Invoices AS T3 ON T2.Invoice_ID = T3.Invoice_ID WHERE T2.Order_Quantity > 1000", "predicted_sql": "SELECT T1.Order_Date FROM Customer_Orders AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Order_ID = T2.Order_ID INNER JOIN Invoices AS T3 ON T2.Invoice_ID = T3.Invoice_ID WHERE T2.Order_Quantity > 1000", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 71, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5131", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the description and code of the service type that is performed the most times.", "gold_sql": "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T2.Service_Type_Description, T2.Service_Type_Code FROM Services AS T1 JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Description, T2.Service_Type_Code ORDER BY COUNT(T1.Service_ID) DESC LIMIT 1", "predicted_sql": "SELECT T2.Service_Type_Description, T2.Service_Type_Code FROM Services AS T1 JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Description, T2.Service_Type_Code ORDER BY COUNT(T1.Service_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 85, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5143", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the order detail for the products with price above 2000.", "gold_sql": "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000", "raw_output": "SELECT T1.Order_Item_ID, T1.Order_Quantity, T1.Other_Item_Details FROM Order_Items AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Order_Item_ID = T2.Order_Item_ID INNER JOIN Invoices AS T3 ON T2.Invoice_ID = T3.Invoice_ID INNER JOIN Products AS T4 ON T2.Product_ID = T4.Product_ID WHERE T4.Product_Price > 2000", "predicted_sql": "SELECT T1.Order_Item_ID, T1.Order_Quantity, T1.Other_Item_Details FROM Order_Items AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Order_Item_ID = T2.Order_Item_ID INNER JOIN Invoices AS T3 ON T2.Invoice_ID = T3.Invoice_ID INNER JOIN Products AS T4 ON T2.Product_ID = T4.Product_ID WHERE T4.Product_Price > 2000", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 113, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5125", "db_id": "cre_Drama_Workshop_Groups", "question": "Return the name of the marketing region the store Rob Dinning is located in.", "gold_sql": "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = \"Rob Dinning\"", "raw_output": "SELECT T2.Marketing_Region_Name FROM Stores AS T1 INNER JOIN Marketing_Regions AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T1.Store_Name = 'Rob Dinning'", "predicted_sql": "SELECT T2.Marketing_Region_Name FROM Stores AS T1 INNER JOIN Marketing_Regions AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T1.Store_Name = 'Rob Dinning'", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5157", "db_id": "cre_Drama_Workshop_Groups", "question": "Which marketing region has the most drama workshop groups? Give me the region code.", "gold_sql": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1", "raw_output": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 28, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5163", "db_id": "cre_Drama_Workshop_Groups", "question": "Which workshop groups have bookings with status code \"stop\"? Give me the names.", "gold_sql": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = \"stop\"", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Bookings AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Status_Code = 'stop'", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Bookings AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Status_Code = 'stop'", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5152", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the email addresses of the drama workshop groups with address in Alaska state?", "gold_sql": "SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = \"Alaska\"", "raw_output": "SELECT T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.State_County = 'Alaska'", "predicted_sql": "SELECT T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.State_County = 'Alaska'", "generation_status": "ok", "prompt_tokens": 1948, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5126", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the descriptions of the service types with product price above 100?", "gold_sql": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100", "raw_output": "SELECT T2.Service_Type_Description FROM Services AS T1 INNER JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Price > 100", "predicted_sql": "SELECT T2.Service_Type_Description FROM Services AS T1 INNER JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Price > 100", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5124", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the name of the marketing region that the store Rob Dinning belongs to?", "gold_sql": "SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = \"Rob Dinning\"", "raw_output": "SELECT T2.Marketing_Region_Name FROM Stores AS T1 INNER JOIN Marketing_Regions AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T1.Store_Name = 'Rob Dinning'", "predicted_sql": "SELECT T2.Marketing_Region_Name FROM Stores AS T1 INNER JOIN Marketing_Regions AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T1.Store_Name = 'Rob Dinning'", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 54, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5146", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the order dates of orders with price higher than 1000?", "gold_sql": "SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000", "raw_output": "SELECT T1.Order_Date FROM Customer_Orders AS T1 INNER JOIN Order_Items AS T2 ON T1.Order_ID = T2.Order_ID INNER JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_Price > 1000", "predicted_sql": "SELECT T1.Order_Date FROM Customer_Orders AS T1 INNER JOIN Order_Items AS T2 ON T1.Order_ID = T2.Order_ID INNER JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_Price > 1000", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 70, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5162", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the names of the workshop groups that have bookings with status code \"stop\"?", "gold_sql": "SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = \"stop\"", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Bookings AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Status_Code = 'stop'", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Bookings AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Status_Code = 'stop'", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 53, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5103", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the minimum, average, and maximum quantities ordered? Check all the invoices.", "gold_sql": "SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES", "raw_output": "SELECT MIN(T1.Order_Quantity), AVG(T1.Order_Quantity), MAX(T1.Order_Quantity) FROM Invoices AS T1", "predicted_sql": "SELECT MIN(T1.Order_Quantity), AVG(T1.Order_Quantity), MAX(T1.Order_Quantity) FROM Invoices AS T1", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 35, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5166", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the average quantities ordered with payment method code \"MasterCard\" on invoices?", "gold_sql": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = \"MasterCard\"", "raw_output": "SELECT AVG(T1.Order_Quantity) FROM Invoices AS T1 INNER JOIN Ref_Payment_Methods AS T2 ON T1.payment_method_code = T2.payment_method_code WHERE T2.payment_method_code = 'MasterCard'", "predicted_sql": "SELECT AVG(T1.Order_Quantity) FROM Invoices AS T1 INNER JOIN Ref_Payment_Methods AS T2 ON T1.payment_method_code = T2.payment_method_code WHERE T2.payment_method_code = 'MasterCard'", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5127", "db_id": "cre_Drama_Workshop_Groups", "question": "Give me the descriptions of the service types that cost more than 100.", "gold_sql": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100", "raw_output": "SELECT T2.Service_Type_Description FROM Services AS T1 INNER JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Price > 100", "predicted_sql": "SELECT T2.Service_Type_Description FROM Services AS T1 INNER JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Price > 100", "generation_status": "ok", "prompt_tokens": 1949, "generated_tokens": 55, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5130", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the description and code of the type of service that is performed the most often?", "gold_sql": "SELECT T1.Service_Type_Description , T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1", "raw_output": "SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Description, T1.Service_Type_Code ORDER BY COUNT(T2.Service_ID) DESC LIMIT 1", "predicted_sql": "SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Description, T1.Service_Type_Code ORDER BY COUNT(T2.Service_ID) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 85, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": true, "warnings": []} {"id": "train_spider:5136", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the different product names? What is the average product price for each of them?", "gold_sql": "SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name", "raw_output": "SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name", "predicted_sql": "SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 19, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5123", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the states or counties where the stores with marketing region code \"CA\" are located.", "gold_sql": "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = \"CA\"", "raw_output": "SELECT DISTINCT T1.State_County FROM Stores AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.Marketing_Region_Code = 'CA'", "predicted_sql": "SELECT DISTINCT T1.State_County FROM Stores AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.Marketing_Region_Code = 'CA'", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "no such column: T1.State_County", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5120", "db_id": "cre_Drama_Workshop_Groups", "question": "Which city is the address of the store named \"FJA Filming\" located in?", "gold_sql": "SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = \"FJA Filming\"", "raw_output": "SELECT T1.City_Town FROM Addresses AS T1 INNER JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = 'FJA Filming'", "predicted_sql": "SELECT T1.City_Town FROM Addresses AS T1 INNER JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = 'FJA Filming'", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 47, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5167", "db_id": "cre_Drama_Workshop_Groups", "question": "Check the invoices record and compute the average quantities ordered with the payment method \"MasterCard\".", "gold_sql": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = \"MasterCard\"", "raw_output": "SELECT AVG(T1.Order_Quantity) FROM Invoices AS T1 INNER JOIN Ref_Payment_Methods AS T2 ON T1.payment_method_code = T2.payment_method_code WHERE T2.payment_method_description = 'MasterCard'", "predicted_sql": "SELECT AVG(T1.Order_Quantity) FROM Invoices AS T1 INNER JOIN Ref_Payment_Methods AS T2 ON T1.payment_method_code = T2.payment_method_code WHERE T2.payment_method_description = 'MasterCard'", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 59, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5135", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the names of the workshop groups where services with product name \"film\" are performed.", "gold_sql": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = \"film\"", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = 'film'", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = 'film'", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5150", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the names of the drama workshop groups with address in Feliciaberg city?", "gold_sql": "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = \"Feliciaberg\"", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.City_Town = 'Feliciaberg'", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.City_Town = 'Feliciaberg'", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5133", "db_id": "cre_Drama_Workshop_Groups", "question": "Give me all the phone numbers and email addresses of the workshop groups where services are performed.", "gold_sql": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "raw_output": "SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 INNER JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "predicted_sql": "SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 INNER JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 50, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5142", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the order details of the products with price higher than 2000?", "gold_sql": "SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000", "raw_output": "SELECT T1.Other_Item_Details FROM Invoices AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Invoice_ID = T2.Invoice_ID INNER JOIN Order_Items AS T3 ON T2.Order_Item_ID = T3.Order_Item_ID INNER JOIN Products AS T4 ON T3.Product_ID = T4.Product_ID WHERE T4.Product_Price > 2000", "predicted_sql": "SELECT T1.Other_Item_Details FROM Invoices AS T1 INNER JOIN Invoice_Items AS T2 ON T1.Invoice_ID = T2.Invoice_ID INNER JOIN Order_Items AS T3 ON T2.Order_Item_ID = T3.Order_Item_ID INNER JOIN Products AS T4 ON T3.Product_ID = T4.Product_ID WHERE T4.Product_Price > 2000", "generation_status": "ok", "prompt_tokens": 1950, "generated_tokens": 97, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5170", "db_id": "cre_Drama_Workshop_Groups", "question": "What is the description of the service type which offers both the photo product and the film product?", "gold_sql": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'", "raw_output": "SELECT T2.Service_Type_Description FROM Services AS T1 INNER JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Name = 'photo product' AND T1.Product_Name = 'film product'", "predicted_sql": "SELECT T2.Service_Type_Description FROM Services AS T1 INNER JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Name = 'photo product' AND T1.Product_Name = 'film product'", "generation_status": "ok", "prompt_tokens": 1951, "generated_tokens": 67, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5155", "db_id": "cre_Drama_Workshop_Groups", "question": "How many drama workshop groups are there in each city? Return both the city and the count.", "gold_sql": "SELECT T1.City_Town , count(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "raw_output": "SELECT T1.City_Town, count(T2.Workshop_Group_ID) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "predicted_sql": "SELECT T1.City_Town, count(T2.Workshop_Group_ID) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town", "generation_status": "ok", "prompt_tokens": 1951, "generated_tokens": 56, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5151", "db_id": "cre_Drama_Workshop_Groups", "question": "Return the the names of the drama workshop groups that are located in Feliciaberg city.", "gold_sql": "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = \"Feliciaberg\"", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.City_Town = 'Feliciaberg'", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Addresses AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.City_Town = 'Feliciaberg'", "generation_status": "ok", "prompt_tokens": 1951, "generated_tokens": 51, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5139", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the product names whose average product price is below 1000000.", "gold_sql": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000", "raw_output": "SELECT T1.Product_Name FROM Products AS T1 GROUP BY T1.Product_Name HAVING AVG(T1.Product_Price) < 1000000", "predicted_sql": "SELECT T1.Product_Name FROM Products AS T1 GROUP BY T1.Product_Name HAVING AVG(T1.Product_Price) < 1000000", "generation_status": "ok", "prompt_tokens": 1951, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5122", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the states or counties of the address of the stores with marketing region code \"CA\"?", "gold_sql": "SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = \"CA\"", "raw_output": "SELECT T1.State_County FROM Addresses AS T1 INNER JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = 'CA'", "predicted_sql": "SELECT T1.State_County FROM Addresses AS T1 INNER JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = 'CA'", "generation_status": "ok", "prompt_tokens": 1951, "generated_tokens": 46, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5134", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the names of workshop groups in which services with product name \"film\" are performed?", "gold_sql": "SELECT T1.Store_Phone , T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = \"film\"", "raw_output": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = 'film'", "predicted_sql": "SELECT T1.Store_Name FROM Drama_Workshop_Groups AS T1 INNER JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = 'film'", "generation_status": "ok", "prompt_tokens": 1951, "generated_tokens": 52, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": false, "ordered": false, "warnings": []} {"id": "train_spider:5138", "db_id": "cre_Drama_Workshop_Groups", "question": "What are the product names with average product price smaller than 1000000?", "gold_sql": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000", "raw_output": "SELECT T1.Product_Name FROM Products AS T1 GROUP BY T1.Product_Name HAVING AVG(T1.Product_Price) < 1000000", "predicted_sql": "SELECT T1.Product_Name FROM Products AS T1 GROUP BY T1.Product_Name HAVING AVG(T1.Product_Price) < 1000000", "generation_status": "ok", "prompt_tokens": 1952, "generated_tokens": 40, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "ok", "prediction_error": null, "gold_error": null, "execution_match": true, "ordered": false, "warnings": []} {"id": "train_spider:5119", "db_id": "cre_Drama_Workshop_Groups", "question": "Find the payment method that is used the most often in all the invoices. Give me its code.", "gold_sql": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1", "raw_output": " نحوه_الاستعلام_لإيجاد_رمز_طريقة_الدفع_المستخدمة_أكثر_تكرارًا_في_جميع_الفواتير:\nSELECT payment_method_code FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1", "predicted_sql": "نحوه_الاستعلام_لإيجاد_رمز_طريقة_الدفع_المستخدمة_أكثر_تكرارًا_في_جميع_الفواتير:\nSELECT payment_method_code FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1", "generation_status": "ok", "prompt_tokens": 1952, "generated_tokens": 66, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "rejected", "prediction_error": "Only SELECT or WITH ... SELECT is accepted", "gold_error": null, "execution_match": false, "ordered": true, "warnings": []} {"id": "train_spider:5171", "db_id": "cre_Drama_Workshop_Groups", "question": "Give me the description of the service type that offers not only the photo product but also the film product.", "gold_sql": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'", "raw_output": "2SELECT T2.Service_Type_Description FROM Services AS T1 JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Name LIKE '%photo%' AND T1.Product_Name LIKE '%film%';", "predicted_sql": "2SELECT T2.Service_Type_Description FROM Services AS T1 JOIN Ref_Service_Types AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T1.Product_Name LIKE '%photo%' AND T1.Product_Name LIKE '%film%';", "generation_status": "ok", "prompt_tokens": 1953, "generated_tokens": 65, "generation_hit_limit": false, "gold_status": "ok", "prediction_status": "error", "prediction_error": "unrecognized token: \"2SELECT\"", "gold_error": null, "execution_match": false, "ordered": false, "warnings": []}